# Use official lightweight Python image FROM python:3.10-slim # Set working directory WORKDIR /app # Copy dependencies list and install them COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY app.py . COPY templates/ templates/ # Expose the port Flask will run on EXPOSE 7860 # Run the Flask application CMD ["python", "app.py"]