SilentWraith commited on
Commit
af31759
·
verified ·
1 Parent(s): 8a14668

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -15,9 +15,13 @@ RUN git clone https://github.com/exis000/HeartDiseasePredictor_Model.git /app/He
15
  # Set the working directory to the cloned repository
16
  WORKDIR /app/HeartDiseasePredictor_Model
17
 
 
 
 
18
  # Install Python dependencies
19
  RUN pip install --upgrade pip && \
20
  pip install -r requirements.txt
21
 
22
- # Run the main script
23
- CMD ["python", "deployment/Api/app.py"]
 
 
15
  # Set the working directory to the cloned repository
16
  WORKDIR /app/HeartDiseasePredictor_Model
17
 
18
+ # Copy the src folder into the deployment folder
19
+ RUN cp -r src deployment/
20
+
21
  # Install Python dependencies
22
  RUN pip install --upgrade pip && \
23
  pip install -r requirements.txt
24
 
25
+ # Change to the deployment/Api directory and run the app
26
+ WORKDIR /app/HeartDiseasePredictor_Model/deployment/Api
27
+ CMD ["python", "app.py"]