Delete Dockerfile
Browse files- Dockerfile +0 -32
Dockerfile
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
FROM python:3.9-slim
|
| 2 |
-
|
| 3 |
-
WORKDIR /app
|
| 4 |
-
|
| 5 |
-
# Diagnostic: List contents of /app before copying anything
|
| 6 |
-
RUN echo "--- /app before copy requirements.txt ---" && ls -lR /app
|
| 7 |
-
|
| 8 |
-
COPY requirements.txt .
|
| 9 |
-
# Diagnostic: List contents of /app after copying requirements.txt
|
| 10 |
-
RUN echo "--- /app after copy requirements.txt ---" && ls -lR /app
|
| 11 |
-
|
| 12 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
-
|
| 14 |
-
# Install unzip to handle zipped model
|
| 15 |
-
RUN apt-get update && apt-get install -y unzip
|
| 16 |
-
|
| 17 |
-
# Diagnostic: List contents of /app before copying all files
|
| 18 |
-
RUN echo "--- /app before copy all files (including zip) ---" && ls -lR /app
|
| 19 |
-
|
| 20 |
-
COPY . .
|
| 21 |
-
# Diagnostic: List contents of /app after copying all files (including zip)
|
| 22 |
-
RUN echo "--- /app after copy all files (including zip) ---" && ls -lR /app
|
| 23 |
-
|
| 24 |
-
# Unzip the model directory
|
| 25 |
-
RUN unzip keras_model_savedmodel.zip -d /app && rm keras_model_savedmodel.zip
|
| 26 |
-
# Diagnostic: List contents of /app after unzipping model
|
| 27 |
-
RUN echo "--- /app after unzip model ---" && ls -lR /app
|
| 28 |
-
RUN echo "--- Contents of keras_model_savedmodel ---" && ls -lR /app/keras_model_savedmodel
|
| 29 |
-
|
| 30 |
-
EXPOSE 8000
|
| 31 |
-
|
| 32 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|