willy.club/Dockerfile
2022-12-29 03:49:24 +00:00

20 lines
327 B
Docker

FROM alpine:latest
RUN apk update && \
apk add nginx php81-fpm
RUN adduser -D -g 'www' www
RUN mkdir /www && \
chown -R www:www /var/lib/nginx && \
chown -R www:www /www
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
COPY ./ /www
COPY ./docker/run.sh /opt/run.sh
RUN chmod +x /opt/run.sh
CMD ["/opt/run.sh"]