SamplePHPContainer/Dockerfile
2023-02-20 19:27:36 +01:00

13 lines
340 B
Docker

FROM docker.io/alpine:latest
RUN apk update && \
apk add tini composer git nginx php-fpm && \
adduser -D -g 'www' www && \
mkdir /www && \
chown -R www:www /var/lib/nginx && \
chown -R www:www /www
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["tini", "--", "/entrypoint.sh"]