jmanhype commited on
Commit
a6525d6
·
1 Parent(s): 20150ec

Force rebuild and fix script copying

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -13
Dockerfile CHANGED
@@ -3,6 +3,7 @@ FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu20.04
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV HF_HUB_ENABLE_HF_TRANSFER=0
5
  ENV HUGGINGFACE_HUB_CACHE=/data/huggingface
 
6
 
7
  # Install system dependencies
8
  RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -43,27 +44,29 @@ RUN pip install --no-cache-dir openmim && \
43
  mim install "mmdet>=3.1.0" && \
44
  mim install "mmpose>=1.1.0"
45
 
46
- # Clone and set up MuseV in a temporary directory
47
- RUN git clone https://github.com/TMElyralab/MuseV.git /tmp/MuseV && \
48
- cd /tmp/MuseV && \
 
 
 
49
  git clone https://github.com/huggingface/diffusers.git && \
50
  git clone https://github.com/patrickvonplaten/controlnet_aux.git && \
51
  cd diffusers && pip install -e . && \
52
- cd ../controlnet_aux && pip install -e .
53
-
54
- # Copy application code
55
- COPY --chown=user:user . .
56
-
57
- # Move MuseV from temp to workspace and set up scripts
58
- RUN cp -r /tmp/MuseV/* MuseV/ && \
59
- # Copy gradio scripts to app directory
60
  cp MuseV/scripts/gradio/gradio_video2video.py . && \
61
  cp MuseV/scripts/gradio/gradio_text2video.py . && \
62
  chmod +x gradio_*.py && \
63
- # Verify the setup
64
  echo "Directory contents:" && ls -la && \
65
  echo "MuseV directory contents:" && ls -la MuseV && \
66
- echo "MuseV scripts directory contents:" && ls -la MuseV/scripts/gradio && \
 
67
  echo "Checking gradio scripts:" && ls -la gradio_*.py && \
68
  echo "Verifying file contents:" && \
69
  cat gradio_video2video.py | head -n 5 && \
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV HF_HUB_ENABLE_HF_TRANSFER=0
5
  ENV HUGGINGFACE_HUB_CACHE=/data/huggingface
6
+ ENV BUILD_DATE="2024-12-04-01"
7
 
8
  # Install system dependencies
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
44
  mim install "mmdet>=3.1.0" && \
45
  mim install "mmpose>=1.1.0"
46
 
47
+ # Copy application code first
48
+ COPY --chown=user:user . .
49
+
50
+ # Clone and set up MuseV
51
+ RUN git clone https://github.com/TMElyralab/MuseV.git /tmp/musev && \
52
+ cd /tmp/musev && \
53
  git clone https://github.com/huggingface/diffusers.git && \
54
  git clone https://github.com/patrickvonplaten/controlnet_aux.git && \
55
  cd diffusers && pip install -e . && \
56
+ cd ../controlnet_aux && pip install -e . && \
57
+ cd .. && \
58
+ # Copy MuseV contents
59
+ cp -r * ../MuseV/ && \
60
+ cd .. && \
61
+ # Copy gradio scripts
 
 
62
  cp MuseV/scripts/gradio/gradio_video2video.py . && \
63
  cp MuseV/scripts/gradio/gradio_text2video.py . && \
64
  chmod +x gradio_*.py && \
65
+ # Verify setup
66
  echo "Directory contents:" && ls -la && \
67
  echo "MuseV directory contents:" && ls -la MuseV && \
68
+ echo "Scripts directory contents:" && ls -la MuseV/scripts && \
69
+ echo "Gradio scripts directory contents:" && ls -la MuseV/scripts/gradio && \
70
  echo "Checking gradio scripts:" && ls -la gradio_*.py && \
71
  echo "Verifying file contents:" && \
72
  cat gradio_video2video.py | head -n 5 && \