update migration to before deployment in freight api

This commit is contained in:
yonastewabe
2026-07-24 14:01:21 +03:00
parent 278d7c333a
commit 16a7aebadd
6 changed files with 49 additions and 26 deletions

View File

@@ -31,6 +31,10 @@ COPY --from=builder /app/ .
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm deploy --filter="@edr/freight-api" --prod --legacy /deploy
FROM deployer AS migration
WORKDIR /deploy
CMD ["node", "dist/scripts/migrate.js"]
FROM node:24.15.0-alpine AS runner
RUN apk add --no-cache libc6-compat
ENV NODE_ENV=production