Delete Dockerfile
Browse files- Dockerfile +0 -29
Dockerfile
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
FROM python:3.10-slim
|
| 2 |
-
|
| 3 |
-
# Install system dependencies for OpenCV and others
|
| 4 |
-
RUN apt-get update && apt-get install -y \
|
| 5 |
-
libgl1-mesa-glx \
|
| 6 |
-
libglib2.0-0 \
|
| 7 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 8 |
-
|
| 9 |
-
# Set working directory
|
| 10 |
-
WORKDIR /app
|
| 11 |
-
|
| 12 |
-
# Copy requirements first to leverage Docker cache
|
| 13 |
-
COPY requirements.txt .
|
| 14 |
-
|
| 15 |
-
# Install Python dependencies
|
| 16 |
-
# Use --no-cache-dir to keep image size down
|
| 17 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 18 |
-
|
| 19 |
-
# Copy the rest of the application
|
| 20 |
-
COPY . .
|
| 21 |
-
|
| 22 |
-
# Create directories for uploads and reports if they don't exist
|
| 23 |
-
RUN mkdir -p static/uploads/single static/uploads/multiple Reports Models
|
| 24 |
-
|
| 25 |
-
# Expose the port Hugging Face Spaces expects
|
| 26 |
-
EXPOSE 7860
|
| 27 |
-
|
| 28 |
-
# Command to run the application
|
| 29 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|