willy.club/Dockerfile

17 lines
373 B
Docker
Raw Normal View History

2023-01-02 12:11:03 +00:00
FROM docker.io/alpine:latest
2022-12-29 01:53:33 +00:00
2023-01-20 19:33:45 +00:00
RUN apk update && \
apk add tini nginx php-fpm && \
2023-01-02 14:38:51 +00:00
adduser -D -g 'www' www && \
mkdir /www && \
2022-12-29 01:53:33 +00:00
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
2023-01-20 19:33:45 +00:00
#COPY ./ /www
2022-12-29 03:05:39 +00:00
COPY ./docker/run.sh /opt/run.sh
RUN chmod +x /opt/run.sh
2023-01-20 19:33:45 +00:00
ENTRYPOINT ["tini", "--"]
2022-12-29 03:05:39 +00:00
CMD ["/opt/run.sh"]