fix(docker): make runner images actually resolvable + standalone layout

- api/worker: overlay package node_modules onto root (dotenv etc.), copy
  @fleetforge/shared at the workspace path the pnpm symlink expects
- web: standalone output nests under apps/web (monorepo outputFileTracingRoot);
  run server.js from WORKDIR /app/apps/web with static/public at that level
- deploy.sh: mount nginx config via named volume ff-nginx-conf (host path /
  cfg does not exist on the host inside the deployer)
This commit is contained in:
Pepe44DEV
2026-09-06 22:59:02 +00:00
parent 12d257faff
commit f311abad6f
4 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -23,8 +23,9 @@ WORKDIR /app
ENV NODE_ENV=production
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 fleetforge
COPY --from=builder /app/apps/web/.next/standalone ./
COPY --from=builder /app/apps/web/.next/static ./.next/static
COPY --from=builder /app/apps/web/public ./public
COPY --from=builder /app/apps/web/.next/static ./apps/web/.next/static
COPY --from=builder /app/apps/web/public ./apps/web/public
WORKDIR /app/apps/web
USER fleetforge
EXPOSE 3001
CMD ["node", "server.js"]