feat: bundle all node_modules to reduce size

This commit is contained in:
Aarnav Tale
2025-10-15 18:11:30 -04:00
parent 4fd8062476
commit 8f260b79f1
7 changed files with 1252 additions and 1389 deletions
+1
View File
@@ -35,6 +35,7 @@ COPY --from=go-build /build/app/wasm_exec.js /build/app/wasm_exec.js
ARG IMAGE_TAG
RUN IMAGE_TAG=$IMAGE_TAG pnpm run build
RUN mkdir -p /var/lib/headplane/agent
RUN pnpm prune --prod
FROM gcr.io/distroless/nodejs22-debian12:latest AS final
COPY --from=js-build /build/build/ /app/build/