Spaces:
Sleeping
Sleeping
Create entrypoint.sh
Browse files- entrypoint.sh +10 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Lancer LocalAI sur le port 8080
|
| 4 |
+
/local-ai --address 0.0.0.0:8080 &
|
| 5 |
+
|
| 6 |
+
# Attendre LocalAI
|
| 7 |
+
sleep 5
|
| 8 |
+
|
| 9 |
+
# Lancer Nginx au premier plan
|
| 10 |
+
nginx -g "daemon off;"
|