jmanhype
commited on
Commit
Β·
d001364
1
Parent(s):
357dcd5
fix: use existing gradio files from repository
Browse files- Dockerfile +7 -16
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
FROM ubuntu:22.04
|
2 |
|
3 |
-
# Force rebuild timestamp: 2024-12-05 20:
|
4 |
LABEL MAINTAINER="jmanhype"
|
5 |
LABEL Description="Test dockerfile for Hugging Face Space"
|
6 |
|
@@ -35,22 +35,13 @@ RUN pip3 install --user gradio numpy
|
|
35 |
RUN git config --global user.email "[email protected]" && \
|
36 |
git config --global user.name "jmanhype"
|
37 |
|
38 |
-
#
|
39 |
-
RUN
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
chmod +x entrypoint.sh && \
|
44 |
-
echo 'import gradio as gr' > test_app.py && \
|
45 |
-
echo '' >> test_app.py && \
|
46 |
-
echo 'def greet(name):' >> test_app.py && \
|
47 |
-
echo ' return f"Hello {name}!"' >> test_app.py && \
|
48 |
-
echo '' >> test_app.py && \
|
49 |
-
echo 'demo = gr.Interface(fn=greet, inputs="text", outputs="text")' >> test_app.py && \
|
50 |
-
echo '' >> test_app.py && \
|
51 |
-
echo 'if __name__ == "__main__":' >> test_app.py && \
|
52 |
-
echo ' demo.launch(server_name="0.0.0.0", server_port=7860)' >> test_app.py
|
53 |
|
54 |
EXPOSE 7860
|
55 |
|
|
|
56 |
CMD ["./entrypoint.sh"]
|
|
|
1 |
FROM ubuntu:22.04
|
2 |
|
3 |
+
# Force rebuild timestamp: 2024-12-05 20:30
|
4 |
LABEL MAINTAINER="jmanhype"
|
5 |
LABEL Description="Test dockerfile for Hugging Face Space"
|
6 |
|
|
|
35 |
RUN git config --global user.email "[email protected]" && \
|
36 |
git config --global user.name "jmanhype"
|
37 |
|
38 |
+
# Clone the repository
|
39 |
+
RUN git clone https://github.com/TMElyralab/MuseV.git .
|
40 |
+
|
41 |
+
# Make the entrypoint script executable
|
42 |
+
RUN chmod +x scripts/gradio/entrypoint.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
EXPOSE 7860
|
45 |
|
46 |
+
WORKDIR $HOME/app/scripts/gradio
|
47 |
CMD ["./entrypoint.sh"]
|