Skip to content

Commit c02981e

Browse files
committed
Use yarn in dockerfile
Move to use yarn in docker and exclude package-lock.json from dockerfile.
1 parent 5ccde92 commit c02981e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
node_modules
2+
package-lock.json
3+
/coverage
4+
/docs
5+
/.nyc_output
6+
27

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:10-alpine
22

33
WORKDIR /app
44
COPY . /app/
5-
RUN npm install
5+
RUN yarn install --production
66

77
EXPOSE 8080
88

0 commit comments

Comments
 (0)