diff --git a/Dockerfile b/Dockerfile index 458f0ef..c41aebd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,8 @@ RUN npm install -g pnpm COPY package*.json ./ RUN pnpm install -# Install prisma +# Copy Prisma files and generate +COPY prisma ./prisma RUN npx prisma generate # Copy the rest of the files and build the application @@ -26,6 +27,7 @@ WORKDIR /app # Copy necessary files from builder stage COPY --from=builder /app/build build/ COPY --from=builder /app/node_modules node_modules/ +COPY --from=builder /app/prisma prisma/ # Copy Prisma files COPY package.json . # Set the environment and expose the port @@ -33,4 +35,4 @@ EXPOSE 3000 ENV NODE_ENV=production # Command to run the application -CMD [ "node", "build" ] \ No newline at end of file +CMD [ "node", "build" ]