docker-compose-sample/nginx/Dockerfile

5 lines
173 B
Docker
Raw Permalink Normal View History

2020-04-14 15:34:34 +00:00
FROM nginx:alpine
COPY default.conf /etc/nginx/conf.d/default.conf
RUN adduser -u 1100 -D -H web-user \
&& sed -i -E 's/(user\s+)\w+;/\1 web-user;/' /etc/nginx/nginx.conf