From 73c55e4c569387abc5a465a3ad22bef36e125882 Mon Sep 17 00:00:00 2001 From: RilusMahmud Date: Thu, 18 Jul 2024 19:15:45 +0600 Subject: [PATCH] feat: added db generate and migrate into Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 909b434..3923d31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ COPY . . # Build the app RUN bun install --ci && cd frontend && bun install --ci && bun run build +RUN bun run db:generate && bun run db:migrate + # Start the server by default, this can be overwritten at runtime EXPOSE 3000 CMD [ "bun", "run", "start" ]