Spaces:
Sleeping
Sleeping
Complete restructuring for hackathon validator compliance with server package, uv.lock, and openenv-core
1e1ca31 Download Dockerfile from parthpethia/Meta-Hackathon: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/spaces/parthpethia/Meta-Hackathon/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/parthpethia/Meta-Hackathon/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/parthpethia/Meta-Hackathon/resolve/main/Dockerfile
587 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY environment/ ./environment/ | |
| COPY server/ ./server/ | |
| COPY openenv.yaml . | |
| COPY inference.py . | |
| COPY pyproject.toml . | |
| # Health check | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 1 | |
| # Run Flask app on port 7860 (HF Space standard) | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| CMD ["python", "-m", "server.app"] | |