FROM python:3.10 WORKDIR /app # Install system dependencies if needed (e.g., for some python packages) RUN apt-get update && apt-get install -y \ build-essential \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . # Expose the port that the application listens on EXPOSE 7860 # Command to run the application # Assuming main.py has the Flask app instance 'app' CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]