privateone commited on
Commit
c8f3a81
·
verified ·
1 Parent(s): a8f5b49

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. 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.template > /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 &