File size: 399 Bytes
8e6ffe1
a0ad7c7
fe9b24f
 
8e6ffe1
a0ad7c7
8e6ffe1
 
a0ad7c7
64fa001
8e6ffe1
fe9b24f
 
8e6ffe1
 
a0ad7c7
 
2b4fdbc
fe9b24f
b22ca5d
 
8e6ffe1
7768cdc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:20-slim

WORKDIR /app

# Copy package files
COPY package.json package-lock.json* ./

# Install ALL deps (dev included — needed for build AND next start)
RUN npm ci

# Copy source
COPY . .

# Build the app (runs prisma generate + next build)
RUN npm run build

ENV NODE_ENV=production
ENV PORT=7860

EXPOSE 7860

# next is available in node_modules/.bin via npm start
CMD ["npm", "start"]