From 7255a71f0b55f72e398c08d5137a0693c3e34a79 Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Tue, 9 Sep 2025 22:29:46 +0900 Subject: [PATCH] chore: optimize Dockerfile build process by refining cache mount and removing unnecessary copy step --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8a7c1ff..93d0ce1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,8 @@ COPY pnpm-lock.yaml package.json . RUN pnpm install --frozen-lockfile COPY . . -RUN --mount=type=cache,target=/src/.next \ - pnpm build \ - && cp -r /src/.next /complete +RUN --mount=type=cache,target=/src/.next/cache \ + pnpm build FROM gcr.io/distroless/nodejs22-debian12