Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion chapter_4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
CMD ["node", "./src/server.js"]