Skip to content

Commit c320249

Browse files
authored
Remove un-necessary second yarn install from example Dockerfile (vercel#32934)
Update to remove the second `yarn install` step from the docker example as it is no longer needed since we only include necessary files from the output file traces now. Closes: vercel#29360 ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
1 parent 92c5aa8 commit c320249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/with-docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ RUN yarn install --frozen-lockfile
99
# Rebuild the source code only when needed
1010
FROM node:16-alpine AS builder
1111
WORKDIR /app
12-
COPY . .
1312
COPY --from=deps /app/node_modules ./node_modules
14-
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
13+
COPY . .
14+
RUN yarn build
1515

1616
# Production image, copy all the files and run next
1717
FROM node:16-alpine AS runner

0 commit comments

Comments
 (0)