Download Dockerfile from Spooker/olla: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/spaces/Spooker/olla/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Spooker/olla/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Spooker/olla/resolve/main/Dockerfile
698 Bytes
| FROM ollama/ollama:latest | |
| # Install Nginx | |
| RUN apt-get update && apt-get install -y nginx gettext-base git curl && rm -rf /var/lib/apt/lists/* | |
| # Redirect nginx logs to stdout and stderr | |
| RUN ln -sf /dev/stdout /var/log/nginx/access.log \ | |
| && ln -sf /dev/stderr /var/log/nginx/error.log | |
| # Ensure external access within the container | |
| ENV OLLAMA_HOST=0.0.0.0 | |
| # Copy config and startup script | |
| COPY nginx.conf.template /etc/nginx/nginx.conf.template | |
| # Copy a startup script | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| # Hugging Face Spaces typically use port 7860 | |
| # EXPOSE 7860 | |
| # ENV OLLAMA_PORT=7860 | |
| # use nginx 7860 | |
| EXPOSE 11434 | |
| ENV OLLAMA_PORT=11434 | |
| ENTRYPOINT ["/bin/bash", "/start.sh"] | |