Skip to content

Commit

Permalink
i18n(zh-cn): Update docker.mdx (#8278)
Browse files Browse the repository at this point in the history
Co-authored-by: liruifengv <[email protected]>
  • Loading branch information
huyikai and liruifengv authored May 15, 2024
1 parent c3eb91b commit e86701e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/zh-cn/recipes/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ WORKDIR /app
# 因此,如果只有源代码发生变化,将会跳过 `-deps` 步骤。
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 . .
RUN npm run build
Expand Down

0 comments on commit e86701e

Please sign in to comment.