moriire commited on
Commit
90ed3f1
1 Parent(s): 4558b55

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -4
Dockerfile CHANGED
@@ -1,12 +1,11 @@
1
  FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
  #python:3.12
3
-
4
- ENV HOST=0.0.0.0 \
 
5
  PORT=7860 \
6
  ORIGINS=*
7
 
8
- VOLUME test.db
9
-
10
  WORKDIR /code
11
 
12
  RUN chmod 777 .
@@ -19,6 +18,16 @@ RUN useradd -m -u 1000 user
19
 
20
  USER user
21
 
 
 
 
 
 
 
 
 
 
 
22
  ENV HOME=/home/user \
23
  PATH=/home/user/.local/bin:$PATH
24
 
 
1
  FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
  #python:3.12
3
+ ENV DEBIAN_FRONTEND=noninteractive \
4
+ TZ=America/Los_Angeles \
5
+ HOST=0.0.0.0 \
6
  PORT=7860 \
7
  ORIGINS=*
8
 
 
 
9
  WORKDIR /code
10
 
11
  RUN chmod 777 .
 
18
 
19
  USER user
20
 
21
+ RUN apt-get update && apt-get install -y \
22
+ git \
23
+ make build-essential libssl-dev zlib1g-dev \
24
+ libbz2-dev libreadline-dev wget curl llvm \
25
+ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git-lfs \
26
+ ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \
27
+ && rm -rf /var/lib/apt/lists/* \
28
+ && git lfs install
29
+
30
+
31
  ENV HOME=/home/user \
32
  PATH=/home/user/.local/bin:$PATH
33