Skip to content

Commit 6a19df4

Browse files
committed
fix: build command in dockerFile {backend}
1 parent 5e0fb5f commit 6a19df4

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

backend/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
FROM node:20-alpine
22

3-
# Set working directory
43
WORKDIR /app
54

6-
# Copy package.json and Prisma schema first
5+
76
COPY package*.json ./
8-
COPY prisma ./prisma
97

10-
# Install dependencies, which triggers Prisma Client generation
8+
119
RUN npm install
1210

13-
# Copy all remaining files for development (volume mount will handle syncing changes)
11+
1412
COPY . .
1513

16-
# Expose backend port
14+
15+
RUN npm run build
16+
17+
# Expose port
1718
EXPOSE 3000
1819

19-
# Run migrations and then start the application
20-
# `migrate deploy` is safe to run on every startup
21-
CMD ["npm", "run", "start:prod"]
20+
# Start production server
21+
CMD ["npm", "run", "start:prod"]

0 commit comments

Comments
 (0)