KingHero121/dataforge-env
0
1FROM python:3.11-slim2 3WORKDIR /app4 5# Install dependencies6COPY requirements.txt .7RUN pip install --no-cache-dir -r requirements.txt8 9# Copy project10COPY . .11 12# Expose HuggingFace Spaces default port13EXPOSE 786014 15# Health-check for HF Spaces16HEALTHCHECK --interval=30s --timeout=5s --retries=3 \17 CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 118 19# Run the server20CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]21 