Skip to content

Commit

Permalink
Update Dockerfile to improve build process
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Jan 19, 2024
1 parent 3c6a180 commit bfb78e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app

RUN mkdir -p .next/cache
COPY .next/cache ./.next/cache

# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
Expand All @@ -22,6 +19,7 @@ RUN \
# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app

COPY --from=deps /app/node_modules ./node_modules
COPY . .

Expand Down

0 comments on commit bfb78e4

Please sign in to comment.