Spaces:
Sleeping
Sleeping
File size: 424 Bytes
305c2a1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Use lightweight Python base image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy dependency list
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all project files
COPY . .
# Expose the port
EXPOSE 7860
# Start Flask with Gunicorn on port 7860 (Spaces expects this port)
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|