fffiloni commited on
Commit
0d08f7a
·
verified ·
1 Parent(s): 654afe8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -10
Dockerfile CHANGED
@@ -45,6 +45,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
45
  RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1
46
  RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
47
 
 
 
 
 
48
  USER user
49
  # Clone the repository (adjust the URL if needed)
50
  RUN git clone --recursive https://github.com/jnjaby/KEEP.git .
@@ -59,15 +63,7 @@ RUN pip install -r requirements_HF.txt
59
  RUN pip install gradio
60
 
61
  # Install specific Cython version known to work with cupy
62
- RUN pip install 'Cython<3.0'
63
-
64
- USER root
65
- # Configure git to trust the directory
66
- RUN git config --global --add safe.directory /home/user/app
67
- RUN chown -R user:user /home/user/app
68
-
69
-
70
-
71
  # Install basicsr with the --user flag
72
  RUN python basicsr/setup.py develop
73
 
@@ -78,6 +74,6 @@ RUN pip install dlib
78
  # Set the environment variable to specify the GPU device
79
  ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
80
  ENV CUDA_VISIBLE_DEVICES=0
81
- USER user
82
  # Command to run your application
83
  CMD ["python", "app.py"]
 
45
  RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1
46
  RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
47
 
48
+ # Configure git to trust the directory
49
+ RUN git config --global --add safe.directory /home/user/app
50
+ RUN chown -R user:user /home/user/app
51
+
52
  USER user
53
  # Clone the repository (adjust the URL if needed)
54
  RUN git clone --recursive https://github.com/jnjaby/KEEP.git .
 
63
  RUN pip install gradio
64
 
65
  # Install specific Cython version known to work with cupy
66
+ RUN pip install cython
 
 
 
 
 
 
 
 
67
  # Install basicsr with the --user flag
68
  RUN python basicsr/setup.py develop
69
 
 
74
  # Set the environment variable to specify the GPU device
75
  ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
76
  ENV CUDA_VISIBLE_DEVICES=0
77
+
78
  # Command to run your application
79
  CMD ["python", "app.py"]