mphycx commited on
Commit
724c568
1 Parent(s): 8459efa

separate run script

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. start_script.sh +13 -0
Dockerfile CHANGED
@@ -35,4 +35,4 @@ EXPOSE 8080
35
 
36
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
37
 
38
- CMD ["/bin/bash", "-c", "lc-serve deploy local api.py;streamlit run app.py --server.port=7860"]
 
35
 
36
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
37
 
38
+ CMD ./start_script.sh
start_script.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Start the first process
4
+ lc-serve deploy local api.py &
5
+
6
+ # Start the second process
7
+ streamlit run app.py --server.port=7860 &
8
+
9
+ # Wait for any process to exit
10
+ wait -n
11
+
12
+ # Exit with status of process that exited first
13
+ exit $?