Spaces:
Sleeping
Sleeping
File size: 524 Bytes
3577c5c 8e5a44f 3577c5c 8e5a44f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | FROM python:3.13-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir uvicorn[standard]==0.24.0
COPY content_gen.py .
COPY main.py .
EXPOSE 7860
ENV HOST=0.0.0.0
ENV PORT=7860
ENV WORKERS=1
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python -c "import requests; requests.get('http://localhost:7860/health')" || exit 1
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |