SamplePHPContainer/Dockerfile

13 lines
340 B
Docker
Raw Normal View History

2023-02-20 18:27:36 +00:00
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"]