AMKCode commited on
Commit
d041428
·
1 Parent(s): 4149fa9

test add GPU

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  RUN apt-get update && \
@@ -23,7 +23,8 @@ RUN apt-get update && \
23
  libxmlsec1-dev \
24
  libffi-dev \
25
  liblzma-dev \
26
- ffmpeg
 
27
 
28
  RUN useradd -m -u 1000 user
29
  USER user
@@ -39,7 +40,7 @@ RUN pyenv install ${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
- pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
43
 
44
  COPY --chown=1000 . ${HOME}/app
45
 
@@ -52,6 +53,8 @@ ENV PYTHONPATH=${HOME}/app \
52
  GRADIO_THEME=huggingface \
53
  TQDM_POSITION=-1 \
54
  TQDM_MININTERVAL=1 \
55
- SYSTEM=spaces
 
 
56
 
57
  ENTRYPOINT /bin/sh start.sh
 
1
+ FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  RUN apt-get update && \
 
23
  libxmlsec1-dev \
24
  libffi-dev \
25
  liblzma-dev \
26
+ ffmpeg \
27
+ nvidia-driver-515
28
 
29
  RUN useradd -m -u 1000 user
30
  USER user
 
40
  pyenv rehash && \
41
  pip install --no-cache-dir -U pip setuptools wheel && \
42
  pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0" "gradio_huggingfacehub_search==0.0.7" "APScheduler" && \
43
+ python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cu121 mlc-ai-nightly-cu121
44
 
45
  COPY --chown=1000 . ${HOME}/app
46
 
 
53
  GRADIO_THEME=huggingface \
54
  TQDM_POSITION=-1 \
55
  TQDM_MININTERVAL=1 \
56
+ SYSTEM=spaces \
57
+ LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH} \
58
+ PATH=/usr/local/nvidia/bin:${PATH}
59
 
60
  ENTRYPOINT /bin/sh start.sh