Benny-Tang commited on
Commit
bc33d05
·
verified ·
1 Parent(s): d09c9c0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -17,14 +17,14 @@ COPY . .
17
  # Build the application
18
  RUN pnpm build
19
 
20
- # Set environment to production
21
  ENV NODE_ENV=production
22
- ENV PORT=3000
23
 
24
- # Expose port
25
- EXPOSE 3000
 
 
 
26
 
27
- # Start the application
28
- CMD ["pnpm", "start"]
29
 
30
 
 
17
  # Build the application
18
  RUN pnpm build
19
 
20
+ # Set environment
21
  ENV NODE_ENV=production
 
22
 
23
+ # Expose port - Hugging Face uses 7860 by default
24
+ EXPOSE 7860
25
+
26
+ # Start the application on port 7860
27
+ CMD ["node", "dist/index.js"]
28
 
 
 
29
 
30