Download source/Dockerfile from sriharithebest/nayara-v1: direct link, hf CLI and curl.
- Browser
- Download file 920 Bytes
-
https://huggingface.co/sriharithebest/nayara-v1/resolve/main/source/Dockerfile
- Command line
-
hf download hf://sriharithebest/nayara-v1/source/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/sriharithebest/nayara-v1/resolve/main/source/Dockerfile
920 Bytes
| FROM python:3.11-slim-bookworm | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| NAYARA_CHECKPOINT=/models/nayara \ | |
| NAYARA_THREADS=4 | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY . /app | |
| RUN pip install torch==2.13.0 --index-url https://download.pytorch.org/whl/cpu \ | |
| && pip install ".[serve]" -c deploy/aws/constraints.txt \ | |
| && useradd --create-home --uid 10001 nayara \ | |
| && mkdir -p /models /tmp/nayara-model \ | |
| && chown -R nayara:nayara /models /tmp/nayara-model | |
| USER 10001 | |
| EXPOSE 8080 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=120s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/readyz', timeout=3)" | |
| CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8080", "--workers", "1", "--no-access-log"] | |