otst commited on
Commit
347e426
·
1 Parent(s): a23b6d0

Add Dockerfile for standalone deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-alpine
2
+
3
+ ENV NODE_ENV=production \
4
+ NEXT_TELEMETRY_DISABLED=1 \
5
+ HOST=0.0.0.0 \
6
+ PORT=7860
7
+
8
+ WORKDIR /app
9
+
10
+ # Copy package.json and install production dependencies
11
+ COPY package.json ./
12
+ RUN npm install --only=production
13
+
14
+ # Copy standalone server and build artifacts
15
+ COPY server.js .
16
+ COPY .next ./.next
17
+ COPY public ./public
18
+
19
+ EXPOSE 7860
20
+ CMD ["node", "server.js"]