## Use the official Python image FROM python:3.9 # Set the working directory in the container # Copy the requirements file into the container COPY requirements.txt ./requirements.txt # Install Python packages from requirements.txt RUN pip install --no-cache-dir --upgrade -r requirements.txt # Copy the current directory contents into the container COPY . . # Run the application using gunicorn with eventlet worker CMD ["gunicorn", "-k", "eventlet", "-b", "0.0.0.0:7860", "app:app"]