fix(docker): keep dist inside apps/<pkg> so pnpm node_modules symlinks (relative to package dir) stay valid in runner

This commit is contained in:
Pepe44DEV
2026-09-06 23:08:43 +00:00
parent baae81b52f
commit 7678700dbb
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -20,9 +20,9 @@ FROM node:20-alpine AS runner
WORKDIR /app
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 fleetforge
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/apps/api/node_modules ./node_modules
COPY --from=builder /app/apps/api/dist ./dist
COPY --from=builder /app/apps/api/package.json ./
COPY --from=builder /app/apps/api/node_modules ./apps/api/node_modules
COPY --from=builder /app/apps/api/dist ./apps/api/dist
COPY --from=builder /app/apps/api/package.json ./apps/api/
USER fleetforge
EXPOSE 3000
CMD ["node", "dist/index.js"]
CMD ["node", "apps/api/dist/index.js"]