Update Dockerfile
Browse files- Dockerfile +0 -18
Dockerfile
CHANGED
|
@@ -15,24 +15,6 @@ 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 |
-
# Print all files in the repository for debugging
|
| 19 |
-
RUN ls -R
|
| 20 |
-
|
| 21 |
-
# Ensure the model folder exists and extract the zip file using Python
|
| 22 |
-
RUN if [ -d "model" ]; then \
|
| 23 |
-
echo "Model folder found."; \
|
| 24 |
-
if [ -f "model/RandomForest_best_model.zip" ]; then \
|
| 25 |
-
echo "RandomForest_best_model.zip found. Extracting using Python..."; \
|
| 26 |
-
python -c "import zipfile; zipfile.ZipFile('model/RandomForest_best_model.zip', 'r').extractall('model/')"; \
|
| 27 |
-
else \
|
| 28 |
-
echo "ERROR: RandomForest_best_model.zip not found in the model folder."; \
|
| 29 |
-
exit 1; \
|
| 30 |
-
fi; \
|
| 31 |
-
else \
|
| 32 |
-
echo "ERROR: Model folder not found."; \
|
| 33 |
-
exit 1; \
|
| 34 |
-
fi
|
| 35 |
-
|
| 36 |
# Install Python dependencies
|
| 37 |
RUN pip install --upgrade pip && \
|
| 38 |
pip install -r requirements.txt
|
|
|
|
| 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
|