multimodalart HF staff commited on
Commit
6aa3a4d
·
verified ·
1 Parent(s): 3f98e1c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -43,28 +43,26 @@ RUN conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c
43
  # Install flash-attention
44
  RUN pip install flash-attn --no-build-isolation
45
 
46
- # Set up app directory
47
  WORKDIR $HOME/app
48
 
49
- # Clone YuE repository and install dependencies
50
  RUN git lfs install && \
51
  git clone https://github.com/multimodal-art-projection/YuE.git && \
52
  cd YuE && \
53
  pip install -r requirements.txt
54
 
55
- # Clone xcodec_mini_infer
56
  WORKDIR $HOME/app/YuE/inference
57
  RUN git clone https://huggingface.co/m-a-p/xcodec_mini_infer
58
 
59
  # Create output directory
60
  RUN mkdir -p $HOME/app/output
61
 
62
- # Copy your files
63
  COPY --chown=user:user run.sh $HOME/app/
64
  COPY --chown=user:user wrapper.py $HOME/app/YuE/inference/
65
  RUN chmod +x $HOME/app/run.sh
66
 
67
- # Set final working directory to where run.sh is located
68
  WORKDIR $HOME/app
69
 
70
  ENTRYPOINT ["./run.sh"]
 
43
  # Install flash-attention
44
  RUN pip install flash-attn --no-build-isolation
45
 
46
+ # First clone repositories and create directories
47
  WORKDIR $HOME/app
48
 
 
49
  RUN git lfs install && \
50
  git clone https://github.com/multimodal-art-projection/YuE.git && \
51
  cd YuE && \
52
  pip install -r requirements.txt
53
 
 
54
  WORKDIR $HOME/app/YuE/inference
55
  RUN git clone https://huggingface.co/m-a-p/xcodec_mini_infer
56
 
57
  # Create output directory
58
  RUN mkdir -p $HOME/app/output
59
 
60
+ # Copy only the necessary additional files
61
  COPY --chown=user:user run.sh $HOME/app/
62
  COPY --chown=user:user wrapper.py $HOME/app/YuE/inference/
63
  RUN chmod +x $HOME/app/run.sh
64
 
65
+ # Set final working directory
66
  WORKDIR $HOME/app
67
 
68
  ENTRYPOINT ["./run.sh"]