Skip to content

Commit

Permalink
Made container run as non-privileged user
Browse files Browse the repository at this point in the history
  • Loading branch information
dbdean committed Aug 19, 2017
1 parent 8ae95f3 commit 7935f9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Expand Up @@ -16,6 +16,10 @@ WORKDIR /workdir
ADD package.json /workdir/package.json
RUN npm install

# downgrade to non-privileged user
RUN groupadd -g 1000 -r data && useradd --no-log-init -r -u 1000 -g data data
USER data

ADD . /workdir

ENTRYPOINT ["make"]
Expand Down

0 comments on commit 7935f9e

Please sign in to comment.