keep_alive / Dockerfile
jebin2's picture
implement a keep-alive service to periodically trigger Hugging Face Spaces.
2b55265
raw
history blame contribute delete
230 Bytes
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]