Merge pull request #426 from pesho/cache_force

Force cache cleaning
This commit is contained in:
Peter Petrov 2017-06-07 14:01:31 +03:00 committed by GitHub
commit 6f27c95ade
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ WORKDIR /usr/src/app
ONBUILD ARG NODE_ENV
ONBUILD ENV NODE_ENV $NODE_ENV
ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install && npm cache clean
ONBUILD RUN npm install && npm cache clean --force
ONBUILD COPY . /usr/src/app
CMD [ "npm", "start" ]

View File

@ -6,7 +6,7 @@ WORKDIR /usr/src/app
ONBUILD ARG NODE_ENV
ONBUILD ENV NODE_ENV $NODE_ENV
ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install && npm cache clean
ONBUILD RUN npm install && npm cache clean --force
ONBUILD COPY . /usr/src/app
CMD [ "npm", "start" ]