Spaces:
Running
Running
oceansweep
commited on
Commit
•
3124c42
1
Parent(s):
6592d2e
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -10,13 +10,16 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
10 |
python3-pip \
|
11 |
git \
|
12 |
ffmpeg \
|
13 |
-
|
14 |
-
|
15 |
|
16 |
WORKDIR /code
|
17 |
|
18 |
COPY ./requirements.txt /code/requirements.txt
|
19 |
|
|
|
|
|
|
|
20 |
# Set up a new user named "user" with user ID 1000
|
21 |
RUN useradd -m -u 1000 user
|
22 |
# Switch to the "user" user
|
|
|
10 |
python3-pip \
|
11 |
git \
|
12 |
ffmpeg \
|
13 |
+
libcudnn8 \
|
14 |
+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
15 |
|
16 |
WORKDIR /code
|
17 |
|
18 |
COPY ./requirements.txt /code/requirements.txt
|
19 |
|
20 |
+
# make sure cudnn errors go away
|
21 |
+
RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`python3 -c 'import os; import torch; print(os.path.dirname(torch.__file__) +"/lib")'`
|
22 |
+
|
23 |
# Set up a new user named "user" with user ID 1000
|
24 |
RUN useradd -m -u 1000 user
|
25 |
# Switch to the "user" user
|