Skip to content
This repository has been archived by the owner on Jun 4, 2018. It is now read-only.

Commit

Permalink
refactor(image): node user is defined in base container & define expo…
Browse files Browse the repository at this point in the history
…se dir & remove cache
  • Loading branch information
masakij committed Apr 15, 2017
1 parent 5ae41e7 commit 9712117
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ LABEL version="0.1.0"
WORKDIR "/home/node/verdaccio"
ADD package.json config.yaml /home/node/verdaccio/

RUN adduser --disabled-password --gecos '' node && \
npm install --production && \
RUN npm install --production && \
mkdir storage local_storage && \
npm cache -f clean && \
chown node:node . -R

USER node
Expand Down

0 comments on commit 9712117

Please sign in to comment.