From b52b977c62b7cf3d907a986861fc83203b601af9 Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Tue, 24 Sep 2024 17:01:17 +0700 Subject: [PATCH] Generate Prisma client during Docker build --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 066092d..b3db23e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,9 @@ COPY --from=node_modules /app/node_modules ./node_modules # Expose the port EXPOSE 3000 +# generate prisma client +RUN npm run prisma:generate + # Start the application CMD ["npm", "run", "start:dev"] \ No newline at end of file