Skip to content

Commit 1d9febb

Browse files
matrus2okendoken
authored andcommitted
Use yarn.lock when building docker containers (#1348)
1 parent 8b33f5b commit 1d9febb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FROM node:7.9.0-alpine
44
WORKDIR /usr/src/app
55

66
COPY ./build/package.json .
7+
COPY ./build/yarn.lock .
78

89
# Install Node.js dependencies
910
RUN yarn install --production --no-progress

tools/copy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ async function copy() {
2929
},
3030
}, null, 2)),
3131
copyFile('LICENSE.txt', 'build/LICENSE.txt'),
32+
copyFile('yarn.lock', 'build/yarn.lock'),
3233
copyDir('public', 'build/public'),
3334
]);
3435

0 commit comments

Comments
 (0)