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

Update Dockerfile

parent 03815239
No related branches found
No related tags found
3 merge requests!5Module Tapes : Try fixing bug 'Mixed Content The page at was loaded over...,!3Openshift deployment,!2Openshift deployment
Pipeline #58871 failed
...@@ -49,8 +49,19 @@ RUN $HOME/.yarn/bin/yarn install --ignore-engines ...@@ -49,8 +49,19 @@ RUN $HOME/.yarn/bin/yarn install --ignore-engines
RUN $HOME/.yarn/bin/yarn encore dev RUN $HOME/.yarn/bin/yarn encore dev
RUN chown root:root /var/log/nginx/* # support running as arbitrary user which belongs to the root group
#RUN adduser -D -g '' -G www-data www-data 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"] 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