Spaces:
No application file
No application file
Delete dockerfile
Browse files- dockerfile +0 -29
dockerfile
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
# Use Python 3.10 slim image (smaller size)
|
| 2 |
-
FROM python:3.10-slim
|
| 3 |
-
|
| 4 |
-
# Set working directory inside container
|
| 5 |
-
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# Install system dependencies needed for OpenCV/TensorFlow
|
| 8 |
-
RUN apt-get update && apt-get install -y \
|
| 9 |
-
libgl1-mesa-glx \
|
| 10 |
-
libglib2.0-0 \
|
| 11 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
-
|
| 13 |
-
# Copy requirements file
|
| 14 |
-
COPY requirements.txt .
|
| 15 |
-
|
| 16 |
-
# Install Python packages
|
| 17 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 18 |
-
|
| 19 |
-
# Copy your Flask app
|
| 20 |
-
COPY app.py .
|
| 21 |
-
|
| 22 |
-
# Set environment variable for port (HF Spaces uses 7860)
|
| 23 |
-
ENV PORT=7860
|
| 24 |
-
|
| 25 |
-
# Expose the port
|
| 26 |
-
EXPOSE 7860
|
| 27 |
-
|
| 28 |
-
# Run the application with gunicorn
|
| 29 |
-
CMD gunicorn --bind 0.0.0.0:7860 --timeout 120 --workers 1 app:app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|