FROM python:3.10 WORKDIR /code # Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the app COPY app.py . # Expose the port EXPOSE 7860 # Run the application CMD ["python", "app.py"]