Skip to content

Commit

Permalink
docker.mdx: use --omit=dev for npm over deprecated --production (w…
Browse files Browse the repository at this point in the history
…ithastro#8226)

Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
2 people authored and wpplumber committed May 15, 2024
1 parent 44896f6 commit da71c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/en/recipes/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ WORKDIR /app
COPY package.json package-lock.json ./
FROM base AS prod-deps
RUN npm install --production
RUN npm install --omit=dev
FROM base AS build-deps
RUN npm install --production=false
RUN npm install
FROM build-deps AS build
COPY . .
Expand Down

0 comments on commit da71c4f

Please sign in to comment.