Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +14 -8
Dockerfile
CHANGED
@@ -68,17 +68,23 @@ RUN pip install --upgrade pip && \
|
|
68 |
pip install ffmpeg-python dlib
|
69 |
|
70 |
# Install basicsr
|
71 |
-
RUN
|
|
|
72 |
echo "VERSION file found at basicsr/VERSION"; \
|
73 |
-
cat
|
74 |
-
|
75 |
-
|
76 |
-
cat basicsr/basicsr/VERSION; \
|
77 |
else \
|
78 |
-
echo "VERSION file not found,
|
79 |
-
|
80 |
fi && \
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
# Command to run your application
|
84 |
CMD ["python", "app.py"]
|
|
|
68 |
pip install ffmpeg-python dlib
|
69 |
|
70 |
# Install basicsr
|
71 |
+
RUN cd basicsr && \
|
72 |
+
if [ -f "VERSION" ]; then \
|
73 |
echo "VERSION file found at basicsr/VERSION"; \
|
74 |
+
cat VERSION; \
|
75 |
+
# Create the VERSION file in the location expected by setup.py
|
76 |
+
mkdir -p basicsr && cp VERSION basicsr/VERSION; \
|
|
|
77 |
else \
|
78 |
+
echo "VERSION file not found, this is unexpected"; \
|
79 |
+
exit 1; \
|
80 |
fi && \
|
81 |
+
echo "Current working directory: $(pwd)" && \
|
82 |
+
echo "Contents of current directory:" && \
|
83 |
+
ls -la && \
|
84 |
+
echo "Contents of basicsr subdirectory:" && \
|
85 |
+
ls -la basicsr && \
|
86 |
+
echo "Running setup.py with verbose output" && \
|
87 |
+
python setup.py develop -v
|
88 |
|
89 |
# Command to run your application
|
90 |
CMD ["python", "app.py"]
|