Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +12 -2
Dockerfile
CHANGED
@@ -73,8 +73,18 @@ RUN pip install "numpy<1.25,>=1.18"
|
|
73 |
RUN pip install cupy==10.4.0
|
74 |
|
75 |
USER root
|
76 |
-
# Install basicsr
|
77 |
-
RUN cd $HOME/app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
USER user
|
80 |
# Install additional Python packages
|
|
|
73 |
RUN pip install cupy==10.4.0
|
74 |
|
75 |
USER root
|
76 |
+
# Install basicsr
|
77 |
+
RUN cd $HOME/app && \
|
78 |
+
if [ -d "basicsr" ]; then \
|
79 |
+
cd basicsr && \
|
80 |
+
if [ ! -f "basicsr/VERSION" ]; then \
|
81 |
+
echo "1.3.2" > basicsr/VERSION; \
|
82 |
+
fi && \
|
83 |
+
python setup.py develop; \
|
84 |
+
else \
|
85 |
+
echo "basicsr directory not found"; \
|
86 |
+
exit 1; \
|
87 |
+
fi
|
88 |
|
89 |
USER user
|
90 |
# Install additional Python packages
|