bartowski commited on
Commit
bd6a553
·
1 Parent(s): 110e4da

Update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -11
Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
- FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
 
2
  ENV DEBIAN_FRONTEND=noninteractive
3
  RUN apt-get update && \
4
  apt-get upgrade -y && \
@@ -20,9 +21,7 @@ RUN apt-get update && \
20
  libxml2-dev \
21
  libxmlsec1-dev \
22
  libffi-dev \
23
- liblzma-dev \
24
- # gradio dependencies \
25
- ffmpeg
26
 
27
  RUN useradd -m -u 1000 user
28
  USER user
@@ -37,14 +36,10 @@ RUN pyenv install ${PYTHON_VERSION} && \
37
  pyenv global ${PYTHON_VERSION} && \
38
  pyenv rehash && \
39
  pip install --no-cache-dir -U pip setuptools wheel && \
40
- pip install "huggingface-hub" "hf-transfer"
41
 
42
  COPY --chown=1000 . ${HOME}/app
43
- RUN git clone https://github.com/ggerganov/llama.cpp && \
44
- cd llama.cpp && \
45
- make clean && \
46
- LLAMA_CUDA=1 make
47
-
48
  RUN pip install -r llama.cpp/requirements.txt
49
 
50
  ENV PYTHONPATH=${HOME}/app \
@@ -58,4 +53,5 @@ ENV PYTHONPATH=${HOME}/app \
58
  TQDM_MININTERVAL=1 \
59
  SYSTEM=spaces
60
 
61
- CMD ["python", "app.py"]
 
 
1
+ FROM ubuntu:22.04
2
+
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  RUN apt-get update && \
5
  apt-get upgrade -y && \
 
21
  libxml2-dev \
22
  libxmlsec1-dev \
23
  libffi-dev \
24
+ liblzma-dev
 
 
25
 
26
  RUN useradd -m -u 1000 user
27
  USER user
 
36
  pyenv global ${PYTHON_VERSION} && \
37
  pyenv rehash && \
38
  pip install --no-cache-dir -U pip setuptools wheel && \
39
+ pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler"
40
 
41
  COPY --chown=1000 . ${HOME}/app
42
+ RUN git clone https://github.com/ggerganov/llama.cpp
 
 
 
 
43
  RUN pip install -r llama.cpp/requirements.txt
44
 
45
  ENV PYTHONPATH=${HOME}/app \
 
53
  TQDM_MININTERVAL=1 \
54
  SYSTEM=spaces
55
 
56
+
57
+ ENTRYPOINT /bin/sh start.sh