Spaces:
Runtime error
Runtime error
anchor
commited on
Update Dockerfile
Browse files- Dockerfile +5 -8
Dockerfile
CHANGED
@@ -5,21 +5,16 @@ LABEL MAINTAINER="anchorxia, zhanchao"
|
|
5 |
LABEL Email="[email protected], [email protected]"
|
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 |
-
|
40 |
-
|
|
|
41 |
|
42 |
RUN which python
|
43 |
EXPOSE 7860
|
44 |
|
45 |
-
|
|
|
|
5 |
LABEL Email="[email protected], [email protected]"
|
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"]
|