fffiloni commited on
Commit
be6a684
·
verified ·
1 Parent(s): 8a1db98

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -1
Dockerfile CHANGED
@@ -55,6 +55,10 @@ WORKDIR $HOME/app
55
  COPY --chown=user:user app.py .
56
  COPY --chown=user:user requirements_HF.txt .
57
 
 
 
 
 
58
  # Install Python dependencies
59
  RUN pip install --upgrade pip && \
60
  pip install -r requirements_HF.txt && \
@@ -64,7 +68,17 @@ RUN pip install --upgrade pip && \
64
  pip install ffmpeg-python dlib
65
 
66
  # Install basicsr
67
- RUN cd basicsr && python setup.py develop
 
 
 
 
 
 
 
 
 
 
68
 
69
  # Command to run your application
70
  CMD ["python", "app.py"]
 
55
  COPY --chown=user:user app.py .
56
  COPY --chown=user:user requirements_HF.txt .
57
 
58
+ # Debug: List contents of the app directory and its subdirectories
59
+ RUN echo "Contents of $HOME/app:" && \
60
+ ls -R $HOME/app
61
+
62
  # Install Python dependencies
63
  RUN pip install --upgrade pip && \
64
  pip install -r requirements_HF.txt && \
 
68
  pip install ffmpeg-python dlib
69
 
70
  # Install basicsr
71
+ RUN if [ -f "basicsr/VERSION" ]; then \
72
+ echo "VERSION file found at basicsr/VERSION"; \
73
+ cat basicsr/VERSION; \
74
+ elif [ -f "basicsr/basicsr/VERSION" ]; then \
75
+ echo "VERSION file found at basicsr/basicsr/VERSION"; \
76
+ cat basicsr/basicsr/VERSION; \
77
+ else \
78
+ echo "VERSION file not found, creating it"; \
79
+ mkdir -p basicsr/basicsr && echo "1.3.4.post2" > basicsr/basicsr/VERSION; \
80
+ fi && \
81
+ cd basicsr && python setup.py develop
82
 
83
  # Command to run your application
84
  CMD ["python", "app.py"]