Skip to content
Snippets Groups Projects
Commit 068bea7e authored by Cyril L'Orphelin's avatar Cyril L'Orphelin
Browse files

Update Dockerfile

parent 1b0a6bc1
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,19 @@ RUN $HOME/.yarn/bin/yarn install --ignore-engines
RUN $HOME/.yarn/bin/yarn encore dev
RUN chown root:root /var/log/nginx/*
#RUN adduser -D -g '' -G www-data www-data
# support running as arbitrary user which belongs to the root group
RUN chmod g+rwx /var/cache/nginx /var/run /var/log/nginx
# users are not allowed to listen on priviliged ports
RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/conf.d/default.conf
EXPOSE 8081
# comment user directive as master process is run as user in OpenShift anyhow
RUN sed -i.bak 's/^user/#user/' /etc/nginx/nginx.conf
RUN addgroup nginx root
USER nginx
CMD ["nginx"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment