jmanhype
commited on
Commit
Β·
38394ee
1
Parent(s):
b33e736
Update Dockerfile to use git environment variables instead of config
Browse files
scripts/gradio/Dockerfile
CHANGED
@@ -7,6 +7,12 @@ LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"
|
|
7 |
|
8 |
SHELL ["/bin/bash", "--login", "-c"]
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
# Set up a new user named "user" with user ID 1000
|
11 |
RUN useradd -m -u 1000 user
|
12 |
|
@@ -25,12 +31,10 @@ RUN echo "docker start"\
|
|
25 |
&& which python \
|
26 |
&& pwd
|
27 |
|
28 |
-
# Clone repository
|
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
|
|
|
7 |
|
8 |
SHELL ["/bin/bash", "--login", "-c"]
|
9 |
|
10 |
+
# Set up environment variables for git
|
11 |
+
ENV GIT_AUTHOR_NAME="jmanhype" \
|
12 |
+
GIT_AUTHOR_EMAIL="[email protected]" \
|
13 |
+
GIT_COMMITTER_NAME="jmanhype" \
|
14 |
+
GIT_COMMITTER_EMAIL="[email protected]"
|
15 |
+
|
16 |
# Set up a new user named "user" with user ID 1000
|
17 |
RUN useradd -m -u 1000 user
|
18 |
|
|
|
31 |
&& which python \
|
32 |
&& pwd
|
33 |
|
34 |
+
# Clone repository
|
35 |
RUN git clone -b hg_space --recursive https://github.com/TMElyralab/MuseV.git \
|
36 |
&& cd MuseV \
|
37 |
&& mkdir -p .git \
|
|
|
|
|
38 |
&& chmod -R 777 .git
|
39 |
|
40 |
# Set permissions
|