ruv commited on
Commit
dd0a638
·
verified ·
1 Parent(s): 7ff01a3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -20,16 +20,18 @@ COPY package*.json ./
20
  # Install the Node.js dependencies
21
  RUN npm install
22
 
23
- # Copy the Flask application code and public directory to the working directory
24
  COPY app.py .
 
 
 
 
 
25
  COPY public ./public
26
 
27
  # Build the React application
28
  RUN npm run build
29
 
30
- # Verify Node.js and npm installation
31
- RUN node --version && npm --version
32
-
33
  # Expose the port on which the Flask application will run
34
  EXPOSE 7860
35
 
 
20
  # Install the Node.js dependencies
21
  RUN npm install
22
 
23
+ # Copy the Flask application code to the working directory
24
  COPY app.py .
25
+
26
+ # Copy the React application code to the working directory
27
+ COPY src ./src
28
+
29
+ # Copy the public directory
30
  COPY public ./public
31
 
32
  # Build the React application
33
  RUN npm run build
34
 
 
 
 
35
  # Expose the port on which the Flask application will run
36
  EXPOSE 7860
37