willy.club/Dockerfile
2023-01-20 20:33:45 +01:00

17 lines
373 B
Docker

FROM docker.io/alpine:latest
RUN apk update && \
apk add tini nginx php-fpm && \
adduser -D -g 'www' www && \
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
ENTRYPOINT ["tini", "--"]
CMD ["/opt/run.sh"]