unclemusclez commited on
Commit
f04c76b
·
verified ·
1 Parent(s): 523ed5f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -14
Dockerfile CHANGED
@@ -9,7 +9,7 @@ RUN apt-get update && \
9
  wget \
10
  curl \
11
  # python build dependencies \
12
- build-essential \
13
  # libssl-dev \
14
  # zlib1g-dev \
15
  # libbz2-dev \
@@ -27,15 +27,17 @@ RUN apt-get update && \
27
  python3.10-venv \
28
  python3-pip \
29
  python-is-python3 \
30
- ffmpeg\
31
- software-properties-common
 
 
 
 
 
 
 
 
32
 
33
- RUN add-apt-repository ppa:longsleep/golang-backports && \
34
- apt-get update && \
35
- apt-get upgrade -y && \
36
- apt-get install -y --no-install-recommends ca-certificates \
37
- golang-go
38
-
39
  ENV USER='user'
40
  RUN useradd -m -u 1000 ${USER}
41
  USER ${USER}
@@ -61,11 +63,11 @@ RUN python -m pip install --no-cache-dir -U pip setuptools wheel
61
  RUN python -m pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
62
  # RUN deactivate
63
  # RUN go install golang.org/x/tools/gopls@latest
64
- RUN git clone https://github.com/ollama/ollama
65
- WORKDIR ${APPDIR}/ollama
66
- RUN OLLAMA_CUSTOM_CPU_DEFS="-DGGML_AVX=on -DGGML_AVX2=on -DGGML_F16C=on -DGGML_FMA=on" go generate ./... --verbose \
67
- go build . --verbose \
68
- go install . --verbose
69
 
70
  RUN git clone https://github.com/ggerganov/llama.cpp
71
  COPY groups_merged.txt ${HOME}/app/llama.cpp/.
 
9
  wget \
10
  curl \
11
  # python build dependencies \
12
+ # build-essential \
13
  # libssl-dev \
14
  # zlib1g-dev \
15
  # libbz2-dev \
 
27
  python3.10-venv \
28
  python3-pip \
29
  python-is-python3 \
30
+ ffmpeg
31
+ # software-properties-common
32
+
33
+ # RUN add-apt-repository ppa:longsleep/golang-backports && \
34
+ # apt-get update && \
35
+ # apt-get upgrade -y && \
36
+ # apt-get install -y --no-install-recommends ca-certificates \
37
+ # golang-go
38
+ RUN curl -L https://ollama.com/download/ollama-linux-amd64 -o /usr/bin/ollama
39
+ RUN chmod +x /usr/bin/ollama
40
 
 
 
 
 
 
 
41
  ENV USER='user'
42
  RUN useradd -m -u 1000 ${USER}
43
  USER ${USER}
 
63
  RUN python -m pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
64
  # RUN deactivate
65
  # RUN go install golang.org/x/tools/gopls@latest
66
+ # RUN git clone https://github.com/ollama/ollama
67
+ # WORKDIR ${APPDIR}/ollama
68
+ # RUN OLLAMA_CUSTOM_CPU_DEFS="-DGGML_AVX=on -DGGML_AVX2=on -DGGML_F16C=on -DGGML_FMA=on" go generate ./... --verbose \
69
+ # go build . --verbose \
70
+ # go install . --verbose
71
 
72
  RUN git clone https://github.com/ggerganov/llama.cpp
73
  COPY groups_merged.txt ${HOME}/app/llama.cpp/.