| FROM python:3.12-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| unzip \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY entrypoint.sh /entrypoint.sh | |
| COPY requirements.txt /requirements.txt | |
| RUN chmod +x /entrypoint.sh | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/entrypoint.sh"] | |