FROM python:3.11-slim-bullseye ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=off PIP_DISABLE_PIP_VERSION_CHECK=on PIP_DEFAULT_TIMEOUT=100 WORKDIR /app RUN python -m pip install --upgrade pip COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt --verbose COPY . . EXPOSE 7860 CMD ["python3", "app.py"]