vijayksagi commited on
Commit
d2143aa
·
verified ·
1 Parent(s): cde7fcf

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -14,7 +14,10 @@ ENV ESLINT_NO_CACHE=true
14
  RUN npm install && npm run build
15
 
16
  # Expose the React app's default port
 
 
 
17
  EXPOSE 7860
18
 
19
- # Start the React server
20
- CMD ["npm", "start"]
 
14
  RUN npm install && npm run build
15
 
16
  # Expose the React app's default port
17
+ RUN npm install -g serve
18
+
19
+ # Expose Hugging Face port
20
  EXPOSE 7860
21
 
22
+ # Start the static server on port 7860
23
+ CMD ["serve", "-s", "build", "-l", "7860"]