Skip to content

Commit

Permalink
Add package-lock.json to Node.js Docker template (#204)
Browse files Browse the repository at this point in the history
This will ensure that, when present, package-lock.json will be copied in the container and will be used for `npm install`.
  • Loading branch information
Alessandro Segala authored and chrisdias committed Jan 23, 2018
1 parent 13b7746 commit 55e0fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configureWorkspace/configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 55e0fa7

Please sign in to comment.