Shih-hungg commited on
Commit
cedcbcd
·
1 Parent(s): c2e4c8e

Update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -13,14 +13,14 @@ RUN npm ci
13
  # Copy the rest of the application
14
  COPY . .
15
 
16
- # Build the application using npx to ensure next is found
17
  RUN npx next build
18
 
19
  # Remove dev dependencies to reduce image size
20
  RUN npm prune --production
21
 
22
- # Expose the port that the app runs on
23
- EXPOSE 3000
24
 
25
- # Start the application
26
- CMD ["npm", "start"]
 
13
  # Copy the rest of the application
14
  COPY . .
15
 
16
+ # Build the Next.js application
17
  RUN npx next build
18
 
19
  # Remove dev dependencies to reduce image size
20
  RUN npm prune --production
21
 
22
+ # Expose Hugging Face default port
23
+ EXPOSE 7860
24
 
25
+ # Start Next.js on port 7860
26
+ CMD ["npx", "next", "start", "-p", "7860"]