Skip to content

Commit

Permalink
Merge pull request #12 from UKHomeOffice/user-uid
Browse files Browse the repository at this point in the history
nginx uid
  • Loading branch information
KashifSaadat committed Mar 29, 2018
2 parents 96c1118 + e89ecc5 commit 9c56036
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.5
FROM alpine:3.7

RUN apk upgrade --no-cache && \
apk add --no-cache nginx bash nginx-mod-http-lua && \
Expand All @@ -8,5 +8,7 @@ RUN apk upgrade --no-cache && \
COPY bin/run.sh /run.sh
COPY conf.d /etc/nginx/conf.d

USER nginx
# UID for nginx user
USER 100

ENTRYPOINT ["/run.sh"]

0 comments on commit 9c56036

Please sign in to comment.