FROM python:3.10-slim WORKDIR /app # Copy and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy app.py into the container COPY app.py . # Expose the port for Hugging Face EXPOSE 7860 # Tell Docker to run app.py CMD ["python", "app.py"]