Skip to content

Commit cc3d9b7

Browse files
authored
Update docker-image-guide.md (#7)
Remove duplicate command.
1 parent 44063bf commit cc3d9b7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

recipes/docker-image-guide.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ WORKDIR /usr/src/app
5656
# https://cheatsheetseries.owasp.org/cheatsheets/NodeJS_Docker_Cheat_Sheet.html#3-optimize-nodejs-tooling-for-production
5757
ENV NODE_ENV production
5858
COPY package*.json .
59-
# we can mount .npmrc secret file without leaving the secrets in the final built image
60-
# refer to docs https://docs.docker.com/build/building/secrets/
61-
RUN --mount=type=secret,id=npmrc_secret,target=/usr/src/app/.npmrc,required npm ci --omit=dev
6259
# https://cheatsheetseries.owasp.org/cheatsheets/NodeJS_Docker_Cheat_Sheet.html#2-install-only-production-dependencies-in-the-nodejs-docker-image
6360
# when NODE_ENV is set to production, npm ci automatically omits dev dependencies
6461
# https://docs.npmjs.com/cli/v10/commands/npm-ci#omit

0 commit comments

Comments
 (0)