diff --git a/chapter_4/Dockerfile b/chapter_4/Dockerfile index 0d1fb55..7749871 100644 --- a/chapter_4/Dockerfile +++ b/chapter_4/Dockerfile @@ -13,8 +13,12 @@ RUN npm install # Copy the rest of the application code COPY . . +# Add these 2 lines to make the Prisma Client work +COPY prisma ./prisma +RUN npx prisma generate --schema=./prisma/schema.prisma + # Expose the port that the app runs on EXPOSE 5003 # Define the command to run your application -CMD ["node", "./src/server.js"] \ No newline at end of file +CMD ["node", "./src/server.js"]