Update Dockerfile
Browse files- 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 |
-
|
|
|
|
|
|
|
| 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
|