1
0
Fork 0

fix(build): add yarn lock to image before installing, add tmp files to docker ignore

This commit is contained in:
ssube 2019-09-17 19:05:46 -05:00
parent c1f792de8a
commit 0db2ec166e
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
2 changed files with 10 additions and 1 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
.nyc_output/
docs/api/
node_modules/
out/api
out/cache/
out/coverage/
out/tmp/

View File

@ -2,7 +2,9 @@ FROM node:12-stretch
# alpine may be smaller, but comes with a 10-15% perf hit
COPY package.json /app/package.json
COPY out/ /app/out/
COPY yarn.lock /app/yarn.lock
COPY . /app
WORKDIR /app