diff --git a/Dockerfile b/Dockerfile index 1191d20..517e45d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,8 +22,11 @@ CMD ["pnpm", "dev"] FROM base AS migrator COPY --from=deps /app/node_modules ./node_modules COPY . . -# Same Node.js native TS-stripping approach used by seed.ts (avoids TLA issues with lexical) -ENV NODE_OPTIONS="--experimental-strip-types --no-require-module" +# --experimental-strip-types: run migrate.ts + migration files as TypeScript natively. +# --no-require-module is intentionally omitted: it was added in Node 22.12.0 and the +# cached base image may be older; our minimal migrate script doesn't load lexical so +# there are no TLA/ESM issues that required that flag. +ENV NODE_OPTIONS="--experimental-strip-types" CMD ["node", "src/scripts/migrate.ts"] # --- Build ---