fix(docker): use package-relative paths for esbuild bundle step

pnpm --filter runs in the package directory, so the input and output
paths must be relative to apps/web, not the repo root.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-15 08:03:14 -07:00
co-authored by Claude Opus 4.7
parent 3b191c449f
commit d5b7206bda
+2 -2
View File
@@ -38,9 +38,9 @@ RUN pnpm --filter @shared-memory/web build
# Bundle the migrator into a single ESM file so the runtime image doesn't
# need tsx or the rest of devDependencies.
RUN pnpm --filter @shared-memory/web exec esbuild apps/web/scripts/migrate.ts \
RUN pnpm --filter @shared-memory/web exec esbuild scripts/migrate.ts \
--bundle --platform=node --target=node20 --format=esm \
--outfile=apps/web/migrate.mjs
--outfile=migrate.mjs
# ---------- runner ----------
FROM node:20-alpine AS runner