reach-vb HF staff commited on
Commit
732bde6
·
verified ·
1 Parent(s): 981814f

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -64
Dockerfile DELETED
@@ -1,64 +0,0 @@
1
- FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive
4
- RUN apt-get update && \
5
- apt-get upgrade -y && \
6
- apt-get install -y --no-install-recommends \
7
- git \
8
- git-lfs \
9
- wget \
10
- curl \
11
- # python build dependencies \
12
- build-essential \
13
- libssl-dev \
14
- zlib1g-dev \
15
- libbz2-dev \
16
- libreadline-dev \
17
- libsqlite3-dev \
18
- libncursesw5-dev \
19
- xz-utils \
20
- tk-dev \
21
- libxml2-dev \
22
- libxmlsec1-dev \
23
- libffi-dev \
24
- liblzma-dev \
25
- ffmpeg \
26
- nvidia-driver-515
27
-
28
- RUN useradd -m -u 1000 user
29
- USER user
30
- ENV HOME=/home/user \
31
- PATH=/home/user/.local/bin:${PATH}
32
- WORKDIR ${HOME}/app
33
-
34
- RUN curl https://pyenv.run | bash
35
- ENV PATH=${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${PATH}
36
- ARG PYTHON_VERSION=3.10.13
37
- RUN pyenv install ${PYTHON_VERSION} && \
38
- pyenv global ${PYTHON_VERSION} && \
39
- pyenv rehash && \
40
- pip install --no-cache-dir -U pip setuptools wheel && \
41
- pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
42
-
43
- COPY --chown=1000 . ${HOME}/app
44
- RUN git clone https://github.com/ggerganov/llama.cpp
45
- RUN pip install -r llama.cpp/requirements.txt
46
-
47
- COPY groups_merged.txt ${HOME}/app/llama.cpp/
48
-
49
- ENV PYTHONPATH=${HOME}/app \
50
- PYTHONUNBUFFERED=1 \
51
- HF_HUB_ENABLE_HF_TRANSFER=1 \
52
- GRADIO_ALLOW_FLAGGING=never \
53
- GRADIO_NUM_PORTS=1 \
54
- GRADIO_SERVER_NAME=0.0.0.0 \
55
- GRADIO_THEME=huggingface \
56
- TQDM_POSITION=-1 \
57
- TQDM_MININTERVAL=1 \
58
- SYSTEM=spaces \
59
- LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH} \
60
- PATH=/usr/local/nvidia/bin:${PATH}
61
-
62
-
63
- ENTRYPOINT /bin/sh start.sh
64
-