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:
+2
-2
@@ -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
|
# Bundle the migrator into a single ESM file so the runtime image doesn't
|
||||||
# need tsx or the rest of devDependencies.
|
# 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 \
|
--bundle --platform=node --target=node20 --format=esm \
|
||||||
--outfile=apps/web/migrate.mjs
|
--outfile=migrate.mjs
|
||||||
|
|
||||||
# ---------- runner ----------
|
# ---------- runner ----------
|
||||||
FROM node:20-alpine AS runner
|
FROM node:20-alpine AS runner
|
||||||
|
|||||||
Reference in New Issue
Block a user