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

change adduser

parent b52b8c5c
No related branches found
No related tags found
No related merge requests found
......@@ -21,10 +21,11 @@ RUN apt-get install -y \
#####################
### NGINX CONF ######
#####################
RUN adduser nginx
RUN useradd -ms /bin/bash nginx
RUN addgroup nginx root
# support running as arbitrary user which belongs to the root group
RUN chmod g+rwx /var/cache/nginx /var/run /var/log/nginx
RUN chmod g+rwx /var/cache /var/run /var/log
# users are not allowed to listen on priviliged ports
RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/conf.d/default.conf
# comment user directive as master process is run as user in OpenShift anyhow
......
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