jmanhype
commited on
Commit
Β·
dc2cbea
1
Parent(s):
a080ad0
Update git configuration with user information
Browse files
scripts/gradio/Dockerfile
CHANGED
@@ -20,18 +20,20 @@ ENV HOME=/home/user \
|
|
20 |
# Set the working directory to the user's home directory
|
21 |
WORKDIR $HOME/app
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
RUN echo "docker start"\
|
24 |
&& whoami \
|
25 |
&& which python \
|
26 |
&& pwd
|
27 |
|
28 |
RUN git clone -b hg_space --recursive https://github.com/TMElyralab/MuseV.git
|
29 |
-
# RUN mkdir ./MuseV/checkpoints \
|
30 |
-
# && ls -l ./MuseV
|
31 |
RUN chmod -R 777 /home/user/app/MuseV
|
32 |
|
33 |
-
# RUN git clone -b main https://huggingface.co/TMElyralab/MuseV /home/user/app/MuseV/checkpoints
|
34 |
-
|
35 |
RUN . /opt/conda/etc/profile.d/conda.sh \
|
36 |
&& echo "source activate musev" >> ~/.bashrc \
|
37 |
&& conda activate musev \
|
@@ -44,9 +46,7 @@ WORKDIR /home/user/app/MuseV/scripts/gradio/
|
|
44 |
# Add entrypoint script
|
45 |
COPY --chown=user entrypoint.sh ./entrypoint.sh
|
46 |
RUN chmod +x ./entrypoint.sh
|
47 |
-
RUN ls -l ./
|
48 |
|
49 |
EXPOSE 7860
|
50 |
|
51 |
-
# CMD ["/bin/bash", "-c", "python app.py"]
|
52 |
CMD ["./entrypoint.sh"]
|
|
|
20 |
# Set the working directory to the user's home directory
|
21 |
WORKDIR $HOME/app
|
22 |
|
23 |
+
# Configure git for the user
|
24 |
+
RUN git config --global --add safe.directory /home/user/app \
|
25 |
+
&& git config --global --add safe.directory /home/user/app/MuseV \
|
26 |
+
&& git config --global user.email "[email protected]" \
|
27 |
+
&& git config --global user.name "jmanhype"
|
28 |
+
|
29 |
RUN echo "docker start"\
|
30 |
&& whoami \
|
31 |
&& which python \
|
32 |
&& pwd
|
33 |
|
34 |
RUN git clone -b hg_space --recursive https://github.com/TMElyralab/MuseV.git
|
|
|
|
|
35 |
RUN chmod -R 777 /home/user/app/MuseV
|
36 |
|
|
|
|
|
37 |
RUN . /opt/conda/etc/profile.d/conda.sh \
|
38 |
&& echo "source activate musev" >> ~/.bashrc \
|
39 |
&& conda activate musev \
|
|
|
46 |
# Add entrypoint script
|
47 |
COPY --chown=user entrypoint.sh ./entrypoint.sh
|
48 |
RUN chmod +x ./entrypoint.sh
|
|
|
49 |
|
50 |
EXPOSE 7860
|
51 |
|
|
|
52 |
CMD ["./entrypoint.sh"]
|