unclemusclez commited on
Commit
0c06541
·
verified ·
1 Parent(s): 963b3ab

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -58,7 +58,7 @@ COPY --chown=1000 . ${APPDIR}
58
 
59
  # RUN python3.10 -m venv .venv
60
  # RUN . .venv/bin/activate
61
-
62
  RUN python -m pip install --no-cache-dir -U pip setuptools wheel
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
@@ -68,7 +68,6 @@ RUN python -m pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0
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
 
73
  RUN git clone https://github.com/ggerganov/llama.cpp
74
  COPY groups_merged.txt llama.cpp/.
@@ -77,7 +76,6 @@ RUN git pull
77
  RUN python -m pip install -r requirements.txt
78
  RUN GGML_CUDA=1 make -j llama-quantize
79
 
80
- ENV PYTHONPATH=${HOME}/.local/bin \
81
  ENV PYTHONUNBUFFERED=1 \
82
  HF_HUB_ENABLE_HF_TRANSFER=1 \
83
  GRADIO_ALLOW_FLAGGING=never \
 
58
 
59
  # RUN python3.10 -m venv .venv
60
  # RUN . .venv/bin/activate
61
+ ENV PYTHONPATH=${HOME}/.local/bin:${PYTHONPATH}
62
  RUN python -m pip install --no-cache-dir -U pip setuptools wheel
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
 
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 llama.cpp/.
 
76
  RUN python -m pip install -r requirements.txt
77
  RUN GGML_CUDA=1 make -j llama-quantize
78
 
 
79
  ENV PYTHONUNBUFFERED=1 \
80
  HF_HUB_ENABLE_HF_TRANSFER=1 \
81
  GRADIO_ALLOW_FLAGGING=never \