merged: Dockerfile

This commit is contained in:
Haitao Pan 2025-12-23 15:26:34 +08:00
parent 9f0157e16d
commit 040c622486

View File

@ -29,9 +29,9 @@ COPY . .
RUN rm -rf src/content/blog/* \
&& mkdir -p src/content/blog
RUN find . -name "package-lock.json" -delete
RUN yarn install --immutable
RUN if [ "$CONTENTLAYER_BUILD" = "true" ]; then yarn contentlayer build; fi
RUN yarn next build
RUN yarn install --immutable && \
yarn prebuild && \
yarn next build
# -------------------------------------------------------
# Stage 2 — Runtime (极致瘦身)