Download Dockerfile from lainlives/mailbox6: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/spaces/lainlives/mailbox6/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lainlives/mailbox6/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lainlives/mailbox6/resolve/main/Dockerfile
1.13 kB
| FROM nvidia/cuda:12.8.0-cudnn-devel-ubuntu22.04 | |
| #FROM ubuntu:latest | |
| WORKDIR /app | |
| RUN mkdir -p /app && chmod 777 /app # && chown ubuntu:ubuntu /app # for ubuntu:latest | |
| RUN apt-get update -y && apt-get upgrade -y | |
| RUN apt-get install -y curl wget build-essential git tar gzip htop micro python3 python3-pip psmisc yt-dlp python3-dev gdb zstd | |
| RUN pip install langchain-yt-dlp #--break-system-packages # for ubuntu:latest | |
| RUN pip install torch==2.9.0 numpy~=1.26.4 sentencepiece~=0.2.0 transformers==4.57.6 protobuf==4.25.8 gguf>=0.1.0 | |
| RUN curl -fsSL https://ollama.com/install.sh | sh | |
| RUN mkdir -p /.ollama && chmod 777 /.ollama | |
| RUN touch /.gitconfig && chmod 777 /.gitconfig | |
| RUN mkdir -p /usr/local/share/model && chmod -R 777 /usr/local/share/model | |
| ENV OLLAMA_MODELS=/usr/local/share/model/ | |
| ENV OLLAMA_HOST=0.0.0.0 | |
| ENV OLLAMA_ORIGINS="[*]" | |
| ENV OLLAMA_KEEP_ALIVE=-1 | |
| ENV OLLAMA_API_KEY=$OLLAMA_API | |
| ENV OLLAMA_KV_CACHE_TYPE=q4_0 | |
| EXPOSE 7860 | |
| EXPOSE 11434 | |
| #CMD curl -fsSL https://gloryhole.redzone-6.cfd/packaged/import.sh | bash | |
| #CMD wget -qO- https://glorious.redzone-6.cfd/packaged/import.sh | bash | |
| CMD ollama serve |