anchor commited on
Commit
c42f217
1 Parent(s): 602783e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -5,21 +5,16 @@ LABEL MAINTAINER="anchorxia, zhanchao"
5
6
  LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"
7
 
8
-
9
  SHELL ["/bin/bash", "--login", "-c"]
10
 
11
  USER root
12
  RUN chown root:root -R /root
13
 
14
-
15
  RUN which python
16
-
17
  RUN pwd
18
 
19
  WORKDIR /root
20
-
21
  RUN pwd
22
-
23
  RUN ls -l
24
  RUN whoami
25
 
@@ -36,10 +31,12 @@ WORKDIR /scripts/gradio
36
 
37
  RUN ls -l
38
 
39
- ENV PYTHONPATH=/root/MuseV:/root/MMCM:/root/diffusers/src:/root/controlnet_aux/src
40
- RUN echo "pythonpath" $PYTHONPATH
 
41
 
42
  RUN which python
43
  EXPOSE 7860
44
 
45
- CMD ["/bin/bash", "-c", ". /opt/conda/etc/profile.d/conda.sh && conda activate musev && python app.py"]
 
 
5
6
  LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"
7
 
 
8
  SHELL ["/bin/bash", "--login", "-c"]
9
 
10
  USER root
11
  RUN chown root:root -R /root
12
 
 
13
  RUN which python
 
14
  RUN pwd
15
 
16
  WORKDIR /root
 
17
  RUN pwd
 
18
  RUN ls -l
19
  RUN whoami
20
 
 
31
 
32
  RUN ls -l
33
 
34
+ # Add entrypoint script
35
+ COPY entrypoint.sh /scripts/gradio/entrypoint.sh
36
+ RUN chmod +x /scripts/gradio/entrypoint.sh
37
 
38
  RUN which python
39
  EXPOSE 7860
40
 
41
+ # Set entrypoint
42
+ ENTRYPOINT ["/scripts/gradio/entrypoint.sh"]