jmanhype commited on
Commit
b33e736
Β·
1 Parent(s): ecd4f25

Update Dockerfile to fix git config permissions

Browse files
scripts/gradio/Dockerfile CHANGED
@@ -28,9 +28,12 @@ RUN echo "docker start"\
28
  # Clone repository and configure git locally
29
  RUN git clone -b hg_space --recursive https://github.com/TMElyralab/MuseV.git \
30
  && cd MuseV \
31
- && git config user.email "[email protected]" \
32
- && git config user.name "jmanhype"
 
 
33
 
 
34
  RUN chmod -R 777 /home/user/app/MuseV
35
 
36
  RUN . /opt/conda/etc/profile.d/conda.sh \
 
28
  # Clone repository and configure git locally
29
  RUN git clone -b hg_space --recursive https://github.com/TMElyralab/MuseV.git \
30
  && cd MuseV \
31
+ && mkdir -p .git \
32
+ && git config --local user.email "[email protected]" \
33
+ && git config --local user.name "jmanhype" \
34
+ && chmod -R 777 .git
35
 
36
+ # Set permissions
37
  RUN chmod -R 777 /home/user/app/MuseV
38
 
39
  RUN . /opt/conda/etc/profile.d/conda.sh \
scripts/gradio/entrypoint.sh CHANGED
@@ -3,15 +3,18 @@
3
  echo "entrypoint.sh"
4
  whoami
5
  which python
 
 
6
  export PYTHONPATH=${PYTHONPATH}:/home/user/app/MuseV:/home/user/app/MuseV/MMCM:/home/user/app/MuseV/diffusers/src:/home/user/app/MuseV/controlnet_aux/src
7
  echo "pythonpath" $PYTHONPATH
8
- # chmod 777 -R /home/user/app/MuseV
9
- # Print the contents of the diffusers/src directory
10
- # echo "Contents of /home/user/app/MuseV/diffusers/src:"
11
- # Load ~/.bashrc
12
- # source ~/.bashrc
13
 
 
14
  source /opt/conda/etc/profile.d/conda.sh
15
  conda activate musev
 
 
16
  which python
17
- python ap_space.py
 
 
 
 
3
  echo "entrypoint.sh"
4
  whoami
5
  which python
6
+
7
+ # Set up Python path
8
  export PYTHONPATH=${PYTHONPATH}:/home/user/app/MuseV:/home/user/app/MuseV/MMCM:/home/user/app/MuseV/diffusers/src:/home/user/app/MuseV/controlnet_aux/src
9
  echo "pythonpath" $PYTHONPATH
 
 
 
 
 
10
 
11
+ # Activate conda environment
12
  source /opt/conda/etc/profile.d/conda.sh
13
  conda activate musev
14
+
15
+ # Print Python version and location
16
  which python
17
+ python --version
18
+
19
+ # Run the app
20
+ python app_gradio_space.py