Update Dockerfile
Browse files- 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 |
-
#
|
| 23 |
-
|
|
|
|
|
|
| 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"]
|