FROM python:3.9-slim # Set the working directory in the container WORKDIR /app COPY . /app RUN pip install --no-cache-dir -r requirements.txt # Expose the port Flask will run on EXPOSE 7860 # Run app.py when the container launches CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]