feature(Dockerfile) set package-lock false

This commit is contained in:
coderaiser 2017-08-07 12:19:05 +03:00
parent b63604882c
commit 08d131a2f1
2 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,8 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install --production && \
RUN npm config set package-lock false && \
npm install --production && \
npm i gritty && \
npm cache clean --force

View file

@ -6,7 +6,8 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install --production && \
RUN npm config set package-lock false && \
npm install --production && \
apk update && \
apk add --no-cache bash make g++ python && \
npm i gritty && \