Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
FROM nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04
|
| 2 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
|
| 4 |
-
RUN apt-
|
|
|
|
| 5 |
apt-get upgrade -y && \
|
| 6 |
apt-get install -y --no-install-recommends ca-certificates \
|
|
|
|
| 7 |
git \
|
| 8 |
git-lfs \
|
| 9 |
wget \
|
|
@@ -22,16 +24,12 @@ RUN apt-get update && \
|
|
| 22 |
libxmlsec1-dev \
|
| 23 |
libffi-dev \
|
| 24 |
liblzma-dev \
|
| 25 |
-
golang-go \
|
| 26 |
-
golang-go-1.22 \
|
| 27 |
nvidia-driver-550 \
|
| 28 |
python3.10 \
|
| 29 |
python3.10-venv \
|
| 30 |
python3-pip \
|
| 31 |
python-is-python3 \
|
| 32 |
ffmpeg
|
| 33 |
-
|
| 34 |
-
|
| 35 |
|
| 36 |
ENV USER='user'
|
| 37 |
RUN useradd -m -u 1000 ${USER}
|
|
@@ -57,14 +55,13 @@ COPY --chown=1000 . ${APPDIR}
|
|
| 57 |
RUN python -m pip install --no-cache-dir -U pip setuptools wheel
|
| 58 |
RUN python -m pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
|
| 59 |
# RUN deactivate
|
| 60 |
-
RUN go install golang.org/x/tools/gopls@latest
|
| 61 |
RUN git clone https://github.com/ollama/ollama
|
| 62 |
WORKDIR ${APPDIR}/ollama
|
| 63 |
RUN OLLAMA_CUSTOM_CPU_DEFS="-DGGML_AVX=on -DGGML_AVX2=on -DGGML_F16C=on -DGGML_FMA=on" go generate ./... --verbose \
|
| 64 |
go build . --verbose \
|
| 65 |
go install . --verbose
|
| 66 |
|
| 67 |
-
|
| 68 |
RUN git clone https://github.com/ggerganov/llama.cpp
|
| 69 |
COPY groups_merged.txt ${HOME}/app/llama.cpp/.
|
| 70 |
WORKDIR ${APPDIR}/llama.cpp
|
|
|
|
| 1 |
FROM nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04
|
| 2 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
|
| 4 |
+
RUN add-apt-repository ppa:longsleep/golang-backports \
|
| 5 |
+
apt-get update && \
|
| 6 |
apt-get upgrade -y && \
|
| 7 |
apt-get install -y --no-install-recommends ca-certificates \
|
| 8 |
+
golang-go \
|
| 9 |
git \
|
| 10 |
git-lfs \
|
| 11 |
wget \
|
|
|
|
| 24 |
libxmlsec1-dev \
|
| 25 |
libffi-dev \
|
| 26 |
liblzma-dev \
|
|
|
|
|
|
|
| 27 |
nvidia-driver-550 \
|
| 28 |
python3.10 \
|
| 29 |
python3.10-venv \
|
| 30 |
python3-pip \
|
| 31 |
python-is-python3 \
|
| 32 |
ffmpeg
|
|
|
|
|
|
|
| 33 |
|
| 34 |
ENV USER='user'
|
| 35 |
RUN useradd -m -u 1000 ${USER}
|
|
|
|
| 55 |
RUN python -m pip install --no-cache-dir -U pip setuptools wheel
|
| 56 |
RUN python -m pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
|
| 57 |
# RUN deactivate
|
| 58 |
+
# RUN go install golang.org/x/tools/gopls@latest
|
| 59 |
RUN git clone https://github.com/ollama/ollama
|
| 60 |
WORKDIR ${APPDIR}/ollama
|
| 61 |
RUN OLLAMA_CUSTOM_CPU_DEFS="-DGGML_AVX=on -DGGML_AVX2=on -DGGML_F16C=on -DGGML_FMA=on" go generate ./... --verbose \
|
| 62 |
go build . --verbose \
|
| 63 |
go install . --verbose
|
| 64 |
|
|
|
|
| 65 |
RUN git clone https://github.com/ggerganov/llama.cpp
|
| 66 |
COPY groups_merged.txt ${HOME}/app/llama.cpp/.
|
| 67 |
WORKDIR ${APPDIR}/llama.cpp
|