fffiloni commited on
Commit
e0d1db5
·
1 Parent(s): fec3d24

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -2
Dockerfile CHANGED
@@ -23,8 +23,21 @@ RUN pip install -q einops pytorch_lightning gradio omegaconf xformers==0.0.20 tr
23
  # Install open_clip from GitHub
24
  RUN pip install -q git+https://github.com/mlfoundations/open_clip@v2.20.0
25
 
26
- # Install aria2
27
- RUN apt-get update && apt-get install -y aria2
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  # Download checkpoint files using aria2
30
  RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lxq007/DiffBIR/resolve/main/general_full_v1.ckpt -d $HOME/app/models -o general_full_v1.ckpt
 
23
  # Install open_clip from GitHub
24
  RUN pip install -q git+https://github.com/mlfoundations/open_clip@v2.20.0
25
 
26
+ # Use sudo to install aria2 with elevated privileges
27
+ USER root
28
+ RUN apt-get update && apt-get install -y sudo wget && \
29
+ wget https://github.com/aria2/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.gz && \
30
+ tar -xzvf aria2-1.36.0.tar.gz && \
31
+ cd aria2-1.36.0 && \
32
+ ./configure && \
33
+ make && \
34
+ make install && \
35
+ cd .. && \
36
+ rm -rf aria2-1.36.0 && \
37
+ rm aria2-1.36.0.tar.gz
38
+
39
+ # Switch back to the "user" user
40
+ USER user
41
 
42
  # Download checkpoint files using aria2
43
  RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lxq007/DiffBIR/resolve/main/general_full_v1.ckpt -d $HOME/app/models -o general_full_v1.ckpt