# Use a standard Python 3.10 image. FROM python:3.10-slim # Set the working directory WORKDIR /code # Copy and install requirements COPY requirements.txt . RUN pip install --no-cache-dir --upgrade -r requirements.txt # Copy the application code COPY . . # IMPORTANT: Expose the port our webhook server needs to listen on. EXPOSE 7860 # Command to run the application CMD ["python", "app.py"]