Robin 52ff7f8f33 redo containers so they are fully rootless
no more annoying useradd/userdel!
allows read only containers!
smaller images!
doesn't crash on restart without recreating anymore! (oops)
configurable children / spare servers!
2022-01-07 22:32:49 +01:00

15 lines
345 B
Docker

FROM nginx:alpine
ENV PHP_FPM="php:9000"
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 /
# The www-data user has uid 33 on Debian/Ubuntu which is what most people are used to
USER 33
ENTRYPOINT [ "sh", "/entrypoint.sh" ]