Spaces:
Sleeping
Sleeping
Download Dockerfile from GTsingh12/ATS-openenv: direct link, hf CLI and curl.
- Browser
- Download file 974 Bytes
-
https://huggingface.co/spaces/GTsingh12/ATS-openenv/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/GTsingh12/ATS-openenv/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/GTsingh12/ATS-openenv/resolve/main/Dockerfile
974 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_NO_CACHE_DIR=1 | |
| ENV API_BASE_URL=https://router.huggingface.co/v1 | |
| ENV MODEL_NAME=Qwen/Qwen2.5-72B-Instruct | |
| ENV HF_TOKEN= | |
| ENV PYTHONPATH=/app | |
| ENV PATH="/app/.venv/bin:${PATH}" | |
| ENV PYTHONUTF8=1 | |
| ENV PYTHONIOENCODING=UTF-8 | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends build-essential curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY pyproject.toml README.md openenv.yaml /app/ | |
| COPY uv.lock /app/ | |
| COPY __init__.py client.py constants.py engine.py graders.py imports.py inference.py models.py planner.py tasks.py /app/ | |
| COPY server /app/server | |
| COPY scripts /app/scripts | |
| RUN pip install --no-cache-dir uv \ | |
| && uv sync --frozen --no-dev | |
| EXPOSE 8000 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ | |
| CMD curl -fsS http://127.0.0.1:8000/health || exit 1 | |
| CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"] | |