Skip to content

Commit

Permalink
Update Dockerfile to use cache for npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Jan 19, 2024
1 parent bfb78e4 commit 735b980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ COPY . .
# Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED 1

RUN npm run build
RUN --mount=type=cache,target=/app/.next/cache npm run build

# ---------------------------------------------------------------------------------------------------------------
# Production image, copy all the files and run next
Expand Down

0 comments on commit 735b980

Please sign in to comment.