From 55e0fa7e4ab0722518ff1828573ac4d4f385af9a Mon Sep 17 00:00:00 2001 From: Alessandro Segala Date: Mon, 22 Jan 2018 20:41:54 -0800 Subject: [PATCH] Add package-lock.json to Node.js Docker template (#204) This will ensure that, when present, package-lock.json will be copied in the container and will be used for `npm install`. --- configureWorkspace/configure.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configureWorkspace/configure.ts b/configureWorkspace/configure.ts index cd7acc3fac..4a636e7f99 100644 --- a/configureWorkspace/configure.ts +++ b/configureWorkspace/configure.ts @@ -11,7 +11,7 @@ function genDockerFile(serviceName: string, platform: string, port: string, { cm return `FROM node:8.9-alpine ENV NODE_ENV production WORKDIR /usr/src/app -COPY ["package.json", "npm-shrinkwrap.json*", "./"] +COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"] RUN npm install --production --silent && mv node_modules ../ COPY . . EXPOSE ${port}