Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +8 -4
Dockerfile
CHANGED
@@ -53,24 +53,28 @@ USER root
|
|
53 |
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
|
54 |
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
|
55 |
|
56 |
-
USER user
|
57 |
# Clone the repository (adjust the URL if needed)
|
58 |
RUN git clone --recursive https://github.com/jnjaby/KEEP.git $HOME/app
|
59 |
|
|
|
|
|
|
|
|
|
|
|
60 |
# Copy the app.py script into the container
|
61 |
COPY app.py .
|
62 |
COPY requirements_HF.txt .
|
63 |
|
64 |
# Install Python dependencies from requirements.txt
|
65 |
RUN pip install --upgrade pip
|
66 |
-
RUN pip install cupy==10.4.0
|
67 |
RUN pip install -r requirements_HF.txt
|
68 |
RUN pip install gradio
|
69 |
-
|
|
|
70 |
|
71 |
USER root
|
72 |
# Install basicsr (assuming setup.py is in basicsr directory)
|
73 |
-
RUN python
|
74 |
|
75 |
USER user
|
76 |
# Install additional Python packages
|
|
|
53 |
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
|
54 |
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
|
55 |
|
|
|
56 |
# Clone the repository (adjust the URL if needed)
|
57 |
RUN git clone --recursive https://github.com/jnjaby/KEEP.git $HOME/app
|
58 |
|
59 |
+
# Set Git ownership for the cloned repository
|
60 |
+
USER root
|
61 |
+
RUN git config --global --add safe.directory $HOME/app
|
62 |
+
USER user
|
63 |
+
|
64 |
# Copy the app.py script into the container
|
65 |
COPY app.py .
|
66 |
COPY requirements_HF.txt .
|
67 |
|
68 |
# Install Python dependencies from requirements.txt
|
69 |
RUN pip install --upgrade pip
|
|
|
70 |
RUN pip install -r requirements_HF.txt
|
71 |
RUN pip install gradio
|
72 |
+
RUN pip install "numpy<1.25,>=1.18"
|
73 |
+
RUN pip install cupy==10.4.0
|
74 |
|
75 |
USER root
|
76 |
# Install basicsr (assuming setup.py is in basicsr directory)
|
77 |
+
RUN cd $HOME/app/basicsr && python setup.py develop
|
78 |
|
79 |
USER user
|
80 |
# Install additional Python packages
|