From 8ac1cbaf3e30cb126315c4a1d1f61911305453f2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Apr 2026 15:34:53 +0000 Subject: [PATCH] chore: replace migrate-entrypoint.sh with direct prisma commands in Dockerfile Agent-Logs-Url: https://github.com/HorizonStackSoftware/optima/sessions/eb8e2182-3a0d-4a9c-ad4f-4d1d9cf8a923 Co-authored-by: HoloPanio <30759238+HoloPanio@users.noreply.github.com> --- api/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 0a0f2a1..41629b3 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -107,7 +107,7 @@ COPY --from=build /app/api/logo.png ./logo.png COPY --from=build /app/api/src/modules/sales-utils/salesTaxRates.json ./salesTaxRates.json EXPOSE 3000 -CMD ["sh", "-c", "sh prisma/migrate-entrypoint.sh && ./server"] +CMD ["sh", "-c", "bunx prisma migrate deploy && ./server"] # ---- Stage 5: Worker runtime image ---- FROM runtime-base AS worker @@ -136,10 +136,8 @@ RUN bun install COPY api/prisma/ ./api/prisma/ COPY api/prisma.config.ts ./api/prisma.config.ts -RUN chmod +x /app/api/prisma/migrate-entrypoint.sh - WORKDIR /app/api -CMD ["sh", "prisma/migrate-entrypoint.sh"] +CMD ["bunx", "prisma", "migrate", "deploy"] # ---- Stage 7: Dalpuri CW-to-API sync runner ---- FROM oven/bun:1.3.11 AS dalpuri-sync