willy.club/Dockerfile

20 lines
327 B
Docker
Raw Normal View History

2022-12-29 01:53:33 +00:00
FROM alpine:latest
RUN apk update && \
2022-12-29 02:31:21 +00:00
apk add nginx php81-fpm
2022-12-29 01:53:33 +00:00
RUN adduser -D -g 'www' www
RUN mkdir /www && \
chown -R www:www /var/lib/nginx && \
chown -R www:www /www
2022-12-29 03:05:39 +00:00
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
2022-12-29 01:53:33 +00:00
2022-12-29 03:05:39 +00:00
COPY ./ /www
2022-12-29 02:29:47 +00:00
2022-12-29 03:05:39 +00:00
COPY ./docker/run.sh /opt/run.sh
RUN chmod +x /opt/run.sh
CMD ["/opt/run.sh"]