Spaces:
Sleeping
Sleeping
Download Dockerfile from 1TSnakers/OllamaSearchAPI: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/1TSnakers/OllamaSearchAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/1TSnakers/OllamaSearchAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/1TSnakers/OllamaSearchAPI/resolve/main/Dockerfile
319 Bytes
| FROM python:3.12 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install -r requirements.txt | |
| COPY --chown=user . /app | |
| CMD ["uvicorn", "ollama_library_api:app", "--host", "0.0.0.0", "--port", "7860", "--reload"] | |