czk32611 commited on
Commit
dc205e7
1 Parent(s): 5a6cd97

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +44 -9
Dockerfile CHANGED
@@ -1,19 +1,39 @@
1
- FROM anchorxia/musev:1.0.0
2
 
3
  #MAINTAINER 维护者信息
4
- LABEL MAINTAINER="anchorxia"
5
- LABEL Email="anchorxia@tencent.com"
6
- LABEL Description="musev gpu runtime image, base docker is pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel"
7
- ARG DEBIAN_FRONTEND=noninteractive
8
-
9
- USER root
10
 
11
  SHELL ["/bin/bash", "--login", "-c"]
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  RUN . /opt/conda/etc/profile.d/conda.sh \
14
  && echo "source activate musev" >> ~/.bashrc \
15
  && conda activate musev \
16
- && conda env list \
17
  && pip install -r requirements.txt \
18
  && pip install --no-cache-dir -U openmim \
19
  && mim install mmengine \
@@ -21,5 +41,20 @@ RUN . /opt/conda/etc/profile.d/conda.sh \
21
  && mim install "mmdet>=3.1.0" \
22
  && mim install "mmpose>=1.1.0" \
23
 
24
- USER root
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
 
1
+ FROM anchorxia/musev:latest
2
 
3
  #MAINTAINER 维护者信息
4
+ LABEL MAINTAINER="zkangchen"
5
+ LABEL Email="zkangchen@tencent.com"
6
+ 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
+
13
+ # Switch to the "user" user
14
+ USER user
15
+
16
+ # Set home to the user's home directory
17
+ ENV HOME=/home/user \
18
+ PATH=/home/user/.local/bin:$PATH
19
+
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 main --recursive https://github.com/TMElyralab/MuseTalk.git
29
+
30
+ RUN chmod -R 777 /home/user/app/MuseTalk
31
+
32
+
33
  RUN . /opt/conda/etc/profile.d/conda.sh \
34
  && echo "source activate musev" >> ~/.bashrc \
35
  && conda activate musev \
36
+ && conda env list
37
  && pip install -r requirements.txt \
38
  && pip install --no-cache-dir -U openmim \
39
  && mim install mmengine \
 
41
  && mim install "mmdet>=3.1.0" \
42
  && mim install "mmpose>=1.1.0" \
43
 
44
+ WORKDIR /home/user/app/MuseTalk/
45
+
46
+ # Add entrypoint script
47
+ COPY --chown=user entrypoint.sh ./entrypoint.sh
48
+ RUN chmod +x ./entrypoint.sh
49
+ RUN ls -l ./
50
+
51
+ EXPOSE 7860
52
+
53
+ # CMD ["/bin/bash", "-c", "python app.py"]
54
+ CMD ["./entrypoint.sh"]
55
+
56
+
57
+
58
+
59
+
60