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
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN --mount=type=cache,target=/src/.next \
|
RUN --mount=type=cache,target=/src/.next/cache \
|
||||||
pnpm build \
|
pnpm build
|
||||||
&& cp -r /src/.next /complete
|
|
||||||
|
|
||||||
FROM gcr.io/distroless/nodejs22-debian12
|
FROM gcr.io/distroless/nodejs22-debian12
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user