We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e0fb5f commit 6a19df4Copy full SHA for 6a19df4
1 file changed
backend/Dockerfile
@@ -1,21 +1,21 @@
1
FROM node:20-alpine
2
3
-# Set working directory
4
WORKDIR /app
5
6
-# Copy package.json and Prisma schema first
+
7
COPY package*.json ./
8
-COPY prisma ./prisma
9
10
-# Install dependencies, which triggers Prisma Client generation
11
RUN npm install
12
13
-# Copy all remaining files for development (volume mount will handle syncing changes)
14
COPY . .
15
16
-# Expose backend port
+RUN npm run build
17
+# Expose port
18
EXPOSE 3000
19
-# Run migrations and then start the application
20
-# `migrate deploy` is safe to run on every startup
21
-CMD ["npm", "run", "start:prod"]
+# Start production server
+CMD ["npm", "run", "start:prod"]
0 commit comments