From ec245f20c6647a7b8e7971ac211e467a07624539 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Mon, 24 Apr 2023 17:10:50 +0200 Subject: [PATCH] Build prisma client based on schema --- infra/dev/server/Dockerfile | 2 ++ infra/prod/server/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/infra/dev/server/Dockerfile b/infra/dev/server/Dockerfile index 611bb3fb8a..7ff99af6a9 100644 --- a/infra/dev/server/Dockerfile +++ b/infra/dev/server/Dockerfile @@ -9,6 +9,8 @@ WORKDIR /app/server COPY ../../server/package.json . COPY ../../server/package-lock.json . RUN npm install +RUN npx prisma generate + COPY ../../server . diff --git a/infra/prod/server/Dockerfile b/infra/prod/server/Dockerfile index cae775f8b5..eddc76f055 100644 --- a/infra/prod/server/Dockerfile +++ b/infra/prod/server/Dockerfile @@ -9,5 +9,7 @@ WORKDIR /app/server COPY ./server . RUN npm run build +RUN npx prisma generate + CMD ["node", "dist/main"]