Download docker/Dockerfile from Amitkumar001/Law_Slm: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/docker/Dockerfile
- Command line
-
hf download hf://Amitkumar001/Law_Slm/docker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/docker/Dockerfile
510 Bytes
| # Multi-stage PyTorch deployment container for SLM ecosystem | |
| FROM python:3.10-slim as builder | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install python dependencies | |
| COPY pyproject.toml . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir . | |
| COPY . /app | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "slm.api.app:app", "--host", "0.0.0.0", "--port", "8000"] | |