16 lines
365 B
Docker
16 lines
365 B
Docker
FROM nginx:alpine
|
|
|
|
ENV PHP_FPM="php:9000"
|
|
|
|
RUN deluser xfs && \
|
|
delgroup www-data && \
|
|
adduser -DH -h /home/www-data -s /sbin/nologin -u 33 www-data
|
|
|
|
RUN find /etc/nginx -type f -not -name 'mime.types' -not -name 'fastcgi_params' -delete && \
|
|
rm -rf conf.d modules
|
|
|
|
COPY nginx.conf /etc/nginx
|
|
COPY entrypoint.sh /
|
|
|
|
ENTRYPOINT [ "sh", "/entrypoint.sh" ]
|