Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -19
Dockerfile
CHANGED
@@ -1,21 +1,7 @@
|
|
1 |
-
FROM nvidia/cuda:11.
|
|
|
2 |
|
3 |
ENV DEBIAN_FRONTEND noninteractive
|
4 |
-
|
5 |
-
# Install Python 3.9 and required packages
|
6 |
-
RUN apt-get update && \
|
7 |
-
apt-get install -y python3.9 python3.9-dev python3-pip && \
|
8 |
-
apt-get clean && \
|
9 |
-
rm -rf /var/lib/apt/lists/*
|
10 |
-
|
11 |
-
# Set Python 3.9 as the default
|
12 |
-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
13 |
-
|
14 |
-
# Install pip for Python 3.9
|
15 |
-
RUN wget https://bootstrap.pypa.io/get-pip.py && \
|
16 |
-
python3.9 get-pip.py && \
|
17 |
-
rm get-pip.py
|
18 |
-
|
19 |
# Set up a new user named "user" with user ID 1000
|
20 |
RUN useradd -m -u 1000 user
|
21 |
|
@@ -33,13 +19,13 @@ WORKDIR $HOME/app
|
|
33 |
RUN git clone -b dev https://github.com/camenduru/DiffBIR $HOME/app
|
34 |
|
35 |
# Install PyTorch and torchvision with a specific CUDA toolkit version
|
36 |
-
RUN
|
37 |
|
38 |
# Install Python dependencies
|
39 |
-
RUN
|
40 |
|
41 |
# Install open_clip from GitHub
|
42 |
-
RUN
|
43 |
|
44 |
# Use sudo to install aria2 with elevated privileges
|
45 |
USER root
|
|
|
1 |
+
FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04
|
2 |
+
CMD nvidia-smi
|
3 |
|
4 |
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
# Set up a new user named "user" with user ID 1000
|
6 |
RUN useradd -m -u 1000 user
|
7 |
|
|
|
19 |
RUN git clone -b dev https://github.com/camenduru/DiffBIR $HOME/app
|
20 |
|
21 |
# Install PyTorch and torchvision with a specific CUDA toolkit version
|
22 |
+
RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 -f https://download.pytorch.org/whl/torch_stable.html
|
23 |
|
24 |
# Install Python dependencies
|
25 |
+
RUN pip install -q einops pytorch_lightning gradio omegaconf xformers==0.0.20 transformers lpips opencv-python
|
26 |
|
27 |
# Install open_clip from GitHub
|
28 |
+
RUN pip install -q git+https://github.com/mlfoundations/open_clip@v2.20.0
|
29 |
|
30 |
# Use sudo to install aria2 with elevated privileges
|
31 |
USER root
|