oceansweep commited on
Commit
6baaa47
1 Parent(s): b1266e5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -11
Dockerfile CHANGED
@@ -5,6 +5,17 @@ ARG DEBIAN_FRONTEND=noninteractive
5
  # Set up a new user named "user" with user ID 1099
6
  RUN useradd -m -u 1099 user
7
 
 
 
 
 
 
 
 
 
 
 
 
8
  # Switch to the "user" user
9
  USER user
10
 
@@ -23,17 +34,6 @@ ENV PYTHONUNBUFFERED=1 \
23
  GRADIO_ANALYTICS_ENABLED=False
24
  WORKDIR /app
25
 
26
- # Update packages
27
- RUN apt-get update && apt-get install -y \
28
- build-essential \
29
- python3 \
30
- python3-pip \
31
- git \
32
- ffmpeg \
33
- libcudnn8 \
34
- libcudnn8-dev \
35
- sudo
36
-
37
  # Set up CUDA libraries
38
  RUN export LD_LIBRARY_PATH=`python3 -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; import torch; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__) + ":" + os.path.dirname(torch.__file__) +"/lib")'`:$LD_LIBRARY_PATH
39
 
 
5
  # Set up a new user named "user" with user ID 1099
6
  RUN useradd -m -u 1099 user
7
 
8
+ # Update packages
9
+ RUN apt-get update && apt-get install -y \
10
+ build-essential \
11
+ python3 \
12
+ python3-pip \
13
+ git \
14
+ ffmpeg \
15
+ libcudnn8 \
16
+ libcudnn8-dev \
17
+ sudo
18
+
19
  # Switch to the "user" user
20
  USER user
21
 
 
34
  GRADIO_ANALYTICS_ENABLED=False
35
  WORKDIR /app
36
 
 
 
 
 
 
 
 
 
 
 
 
37
  # Set up CUDA libraries
38
  RUN export LD_LIBRARY_PATH=`python3 -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; import torch; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__) + ":" + os.path.dirname(torch.__file__) +"/lib")'`:$LD_LIBRARY_PATH
39