fffiloni commited on
Commit
5401cd9
·
verified ·
1 Parent(s): be6a684

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 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"]
 
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"]