Spaces:
Sleeping
Sleeping
File size: 479 Bytes
3889923 3a95a2d 3889923 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | FROM python:3.11-slim
WORKDIR /app
RUN pip install uv --no-cache-dir
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire flat structure
COPY . .
RUN pip install --no-cache-dir -e .
EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 1
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] |