| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_DISABLE_PIP_VERSION_CHECK=1 | |
| ENV PORT=7860 | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN python3 -m pip install --upgrade pip && pip install --no-cache-dir -r /app/requirements.txt | |
| COPY . /app | |
| EXPOSE 7860 | |
| CMD ["python3", "-m", "uvicorn", "custom_web:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips", "*"] | |