From 32f9828bba61d59643e9b86006bc31e57f7020c5 Mon Sep 17 00:00:00 2001 From: Stuart Bourhill Date: Thu, 14 Aug 2025 11:45:27 +0100 Subject: [PATCH] fix: remove db migration from Dockerfile build step Database migrations should run at deployment time, not build time, to avoid race conditions and build failures. --- apps/backend/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/backend/Dockerfile b/apps/backend/Dockerfile index 0d810b2fa..d5942796a 100644 --- a/apps/backend/Dockerfile +++ b/apps/backend/Dockerfile @@ -51,6 +51,4 @@ COPY --from=installer /app . WORKDIR /app/apps/backend -RUN yarn db:migrate - -CMD ["yarn", "start"] \ No newline at end of file +CMD ["yarn", "start"]