osanseviero commited on
Commit
fda98aa
·
verified ·
1 Parent(s): 15e4694

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -13,8 +13,11 @@ RUN npm install
13
  # Copy the rest of the application code
14
  COPY . .
15
 
 
 
 
16
  # Expose the port your React app runs on
17
  EXPOSE 7860
18
 
19
  # Command to run the application
20
- CMD ["npm", "run", "dev"]
 
13
  # Copy the rest of the application code
14
  COPY . .
15
 
16
+ # Build the app
17
+ RUN npm run build
18
+
19
  # Expose the port your React app runs on
20
  EXPOSE 7860
21
 
22
  # Command to run the application
23
+ CMD ["npm", "run", "start"]