brendon-ai commited on
Commit
f4b92bb
·
verified ·
1 Parent(s): b04e9f2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -16,9 +16,10 @@ RUN ollama pull ${OLLAMA_MODEL_NAME}
16
 
17
  # Set OLLAMA_HOST to listen on all network interfaces inside the container
18
  # This is crucial for Hugging Face Spaces to be able to connect to Ollama.
19
- # OLLAMA_ORIGINS allows cross-origin requests, useful if you build a web UI later.
20
  ENV OLLAMA_HOST="0.0.0.0:11434"
21
- ENV OLLAMA_ORIGINS="*" # Allow all origins for the API
 
 
22
 
23
  # Expose the port Ollama listens on
24
  EXPOSE 11434
 
16
 
17
  # Set OLLAMA_HOST to listen on all network interfaces inside the container
18
  # This is crucial for Hugging Face Spaces to be able to connect to Ollama.
 
19
  ENV OLLAMA_HOST="0.0.0.0:11434"
20
+
21
+ # Allow all origins for the API (CORS configuration)
22
+ ENV OLLAMA_ORIGINS="*"
23
 
24
  # Expose the port Ollama listens on
25
  EXPOSE 11434