diff --git a/apps/chat/Dockerfile b/apps/chat/Dockerfile index 6f5ffaf..a5df282 100644 --- a/apps/chat/Dockerfile +++ b/apps/chat/Dockerfile @@ -16,6 +16,11 @@ 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/ . @@ -44,4 +49,4 @@ WORKDIR /app/apps/chat EXPOSE 8000 -ENTRYPOINT ["node", "dist/index.js"] \ No newline at end of file +ENTRYPOINT ["node", "dist/index.js"] diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index bf841e8..19cebea 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -34,6 +34,11 @@ 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 @@ -92,4 +97,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"] \ No newline at end of file +CMD ["/usr/local/bin/start.sh"]