Skip to content

Commit b844f27

Browse files
committed
Update Dockerfile
1 parent 8f3e111 commit b844f27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ FROM base as deps
99

1010
WORKDIR /myapp
1111

12-
ADD package.json package-lock.json ./
12+
ADD package.json package-lock.json .npmrc ./
1313
RUN npm install --production=false
1414

1515
# Setup production node_modules
@@ -18,7 +18,7 @@ FROM base as production-deps
1818
WORKDIR /myapp
1919

2020
COPY --from=deps /myapp/node_modules /myapp/node_modules
21-
ADD package.json package-lock.json ./
21+
ADD package.json package-lock.json .npmrc ./
2222
RUN npm prune --production
2323

2424
# Build the app

0 commit comments

Comments
 (0)