Spaces:
Sleeping
Sleeping
# Dockerfile | |
# Base image: lightweight Python 3.9 | |
FROM python:3.9-slim | |
# Install system packages if needed (none strictly required here) | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
gcc \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set work directory | |
WORKDIR /app | |
# Copy requirements and install | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy our application code | |
COPY app.py . | |
# Expose port 7860 (Gradio + Flask) | |
EXPOSE 7860 | |
# Launch the combined Flask + Gradio server | |
CMD ["python", "app.py"] | |