From 9e0588c4737c19791c0ff0ac0b975aca56c7a352 Mon Sep 17 00:00:00 2001 From: sbriat Date: Fri, 5 May 2023 16:03:01 +0200 Subject: [PATCH] fix prisma error fail on build --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 171775c..f59b37f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,9 @@ WORKDIR /usr/src/app # Copying this first prevents re-running npm install on every code change. COPY --chown=node:node package*.json ./ +# Copy prisma (needed for prisma error types) +COPY --chown=node:node ./prisma prisma + # Install app dependencies using the `npm ci` command instead of `npm install` RUN npm ci RUN npx prisma generate