Spaces:
Paused
Paused
Download Dockerfile from adwitiyashukla/specmodel: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/spaces/adwitiyashukla/specmodel/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/adwitiyashukla/specmodel/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/adwitiyashukla/specmodel/resolve/main/Dockerfile
347 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu | |
| COPY pyproject.toml ./ | |
| COPY specmodel ./specmodel | |
| RUN pip install --no-cache-dir . | |
| COPY export ./export | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "python -m specmodel serve --export export/* --host 0.0.0.0 --port ${PORT}"] | |