mirror of
https://github.com/tuna2134/cecilia.git
synced 2026-02-06 14:42:40 +00:00
chore: optimize Dockerfile build process by refining cache mount and removing unnecessary copy step
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user