Write the adopted team Rule before the server listens so deploy cannot feature the old draft body.

This commit is contained in:
adilallo committed 2026-11-12 15:55:36 -07:00
1 parent 29a8d2b32b
commit 1ec1f48d35
8 files changed
+232 -86

No files matched your search

+5
View File
@@ -42,6 +42,10 @@ RUN ./node_modules/.bin/esbuild scripts/send-rule-follow-up.ts \
--bundle --platform=node --format=cjs \
--outfile=follow-up-mail.bundle.cjs \
--external:@prisma/client
RUN ./node_modules/.bin/esbuild scripts/seed-team-rule.ts \
--bundle --platform=node --format=cjs \
--outfile=team-rule.bundle.cjs \
--external:@prisma/client
FROM base AS runner
# openssl: Prisma engines. gosu: privilege drop in start.sh after chown.
@@ -58,6 +62,7 @@ COPY --from=builder --chown=node:node /app/.next/static ./.next/static
COPY --from=builder --chown=node:node /app/prisma ./prisma
COPY --from=builder --chown=node:node /app/prune-expired.bundle.cjs ./prune-expired.bundle.cjs
COPY --from=builder --chown=node:node /app/follow-up-mail.bundle.cjs ./follow-up-mail.bundle.cjs
COPY --from=builder --chown=node:node /app/team-rule.bundle.cjs ./team-rule.bundle.cjs
# Facet/template seed JSON — NOT under /app/data (localstorage mount overlays that).
COPY --from=builder --chown=node:node /app/data ./seed-data
ENV SEED_DATA_DIR=/app/seed-data