Skip to content

Commit

Permalink
adjusting dockerfile for ephimeral Openshift User
Browse files Browse the repository at this point in the history
  • Loading branch information
maneta committed Sep 10, 2017
1 parent c0b8cfa commit 93aaf14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ COPY ./ /opt/project-x

RUN groupadd -r xman -g 1001 \
&& useradd -u 1001 -r -g xman -d /opt/project-x/ -s /sbin/nologin -c "Docker image user" xman \
&& chown -R xman:xman /opt/project-x/
&& chown -R xman:xman /opt/project-x/ \
&& chmod 0757 /opt/project-x/script/

USER 1001
EXPOSE 8080
Expand Down

0 comments on commit 93aaf14

Please sign in to comment.