Skip to content

Commit ebb80e4

Browse files
committed
refactor Dockerfile to use deps stage for building instead of base
1 parent df95d51 commit ebb80e4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ RUN npm i -g pnpm && pnpm i --frozen-lockfile
1212

1313

1414
# Rebuild the source code only when needed
15-
FROM base AS builder
15+
FROM deps AS builder
1616
WORKDIR /app
17-
COPY --from=deps /app/node_modules ./node_modules
1817
COPY . .
1918

2019
# Next.js collects completely anonymous telemetry data about general usage.

0 commit comments

Comments
 (0)