aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-18 13:48:36 +0000
committerMohamedBassem <me@mbassem.com>2024-02-18 13:48:36 +0000
commitfb5b114ec4d42668aeb4fa0dce30125f1cac04e7 (patch)
treeece09701a1e510f78431bd63ed6669c0c4c9c687 /Dockerfile
parent38c885ce0658fdb0d95b1cccfad5217355fcea61 (diff)
downloadkarakeep-fb5b114ec4d42668aeb4fa0dce30125f1cac04e7.tar.zst
build: Use the workers image for doing migrations instead of a dedicated container
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 0 insertions, 19 deletions
diff --git a/Dockerfile b/Dockerfile
index a881c9f2..fc1950b4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -50,25 +50,6 @@ ENV HOSTNAME "0.0.0.0"
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
CMD ["node", "server.js"]
-
-################# Db migrations ##############
-
-FROM node:21-alpine AS db
-WORKDIR /app
-
-
-COPY packages/db packages/db
-COPY package.json yarn.lock .yarnrc.yml .
-WORKDIR /app/packages/db
-
-RUN corepack enable && \
- yarn workspaces focus --production && \
- yarn dlx prisma generate
-
-USER root
-
-CMD ["yarn", "dlx", "prisma", "migrate", "deploy"]
-
################# The workers builder ##############
FROM node:21-alpine AS workers_builder