# Use a lightweight Python base FROM python:3.10-slim # Set working directory in container WORKDIR /app # Copy and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy your app code COPY . . # Expose the port the app runs on EXPOSE 7860 # Run your app CMD ["python", "app.py"]