Skip to content

Commit 9933112

Browse files
committed
chore: docker optimization
1 parent 23fac86 commit 9933112

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
node_modules
22
.git
3+
.github
4+
.gitignore
5+
*.md
6+
dist

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ RUN apk add --no-cache git
44

55
WORKDIR /app
66

7-
COPY package.json .
7+
COPY package*.json .
88

9-
RUN npm install
9+
RUN npm install && \
10+
npm cache clear --force
1011

1112
COPY . .
1213

0 commit comments

Comments
 (0)