Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +2 -1
entrypoint.sh
CHANGED
|
@@ -5,7 +5,8 @@ set -e
|
|
| 5 |
AUTH_TOKEN="${AUTH_TOKEN:= huggingface}"
|
| 6 |
|
| 7 |
# Replace ${AUTH_TOKEN} in nginx config template with env var value
|
| 8 |
-
envsubst '${AUTH_TOKEN}' < /etc/nginx/nginx.conf
|
|
|
|
| 9 |
|
| 10 |
# Start Ollama in background
|
| 11 |
ollama serve &
|
|
|
|
| 5 |
AUTH_TOKEN="${AUTH_TOKEN:= huggingface}"
|
| 6 |
|
| 7 |
# Replace ${AUTH_TOKEN} in nginx config template with env var value
|
| 8 |
+
envsubst '${AUTH_TOKEN}' < /etc/nginx/nginx.conf > /tmp/nginx.conf && mv /tmp/nginx.conf /etc/nginx/nginx.conf
|
| 9 |
+
|
| 10 |
|
| 11 |
# Start Ollama in background
|
| 12 |
ollama serve &
|