# Start light FROM python:3.10-slim # Set working directory WORKDIR /app # --- CACHE BUSTER --- # Changing this line forces Docker to ignore the cache and re-install everything ENV CACHEBUSTER=2026-02-07 # Copy requirements COPY requirements.txt requirements.txt # Install dependencies (Force upgrade everything) RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir --upgrade -r requirements.txt # Copy the app COPY . . # Create user (Security) RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH # Expose port EXPOSE 7860 # Run it CMD ["python", "app.py"]