Download Dockerfile from PyxiLab/Ollama: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/PyxiLab/Ollama/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PyxiLab/Ollama/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PyxiLab/Ollama/resolve/main/Dockerfile
496 Bytes
| FROM node:18-slim | |
| WORKDIR / | |
| COPY package.json ollama.sh ollama.js ./ | |
| # Install system dependencies + Ollama | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| curl \ | |
| netcat-openbsd \ | |
| bash && \ | |
| curl -L https://ollama.ai/install.sh | sh && \ | |
| chmod +x ollama.sh | |
| # Install Node dependencies | |
| RUN npm install cloudflared-tunnel | |
| # Create Ollama storage directory | |
| RUN mkdir -p /.ollama && chmod 777 /.ollama | |
| ENV PATH="/usr/local/bin:$PATH" | |
| EXPOSE 11434 | |
| ENTRYPOINT ["/ollama.sh"] |