Revert "Copy root pnpm manifests into Docker installer stages"

This commit is contained in:
jeninh
2026-02-07 20:43:44 -05:00
committed by GitHub
parent d2cd99d3d4
commit 8f2516cabe
2 changed files with 2 additions and 12 deletions

View File

@@ -16,11 +16,6 @@ FROM base AS installer
RUN apk update
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Ensure pnpm has a root manifest even if the prune output is missing it.
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/pnpm-workspace.yaml ./pnpm-workspace.yaml
COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
# First install the dependencies
COPY --from=builder /app/out/json/ .
@@ -49,4 +44,4 @@ WORKDIR /app/apps/chat
EXPOSE 8000
ENTRYPOINT ["node", "dist/index.js"]
ENTRYPOINT ["node", "dist/index.js"]

View File

@@ -34,11 +34,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY --from=builder /tmp/commit_hash /tmp/commit_hash
WORKDIR /app
# Ensure pnpm has a root manifest even if the prune output is missing it.
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/pnpm-workspace.yaml ./pnpm-workspace.yaml
COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
# First install the dependencies (as they change less often)
COPY --from=builder /app/out/json/ .
RUN pnpm install --frozen-lockfile
@@ -97,4 +92,4 @@ COPY --from=installer --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY --from=installer --chown=nextjs:nodejs /app/package.json ./package.json
COPY --from=installer --chown=nextjs:nodejs /app/pnpm-workspace.yaml ./pnpm-workspace.yaml
CMD ["/usr/local/bin/start.sh"]
CMD ["/usr/local/bin/start.sh"]