mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	added comments
This commit is contained in:
		
							parent
							
								
									fde0139bf7
								
							
						
					
					
						commit
						6dc4b748fb
					
				| @ -1,5 +1,6 @@ | ||||
| # syntax=docker/dockerfile:1 | ||||
| # Initialize device type args | ||||
| # use buiild args in the docker build commmand with --build-arg="BUILDARG=true" | ||||
| ARG USE_CUDA=false | ||||
| ARG USE_MPS=false | ||||
| ARG INCLUDE_OLLAMA=false | ||||
|  | ||||
| @ -221,6 +221,8 @@ if OLLAMA_BASE_URL == "" and OLLAMA_API_BASE_URL != "": | ||||
| if ENV == "prod": | ||||
|     if OLLAMA_BASE_URL == "/ollama": | ||||
|         if INCLUDE_OLLAMA: | ||||
|             # If you use all in one Docker container (WEbUI + Ollama)  | ||||
|             # with the docker build arg INCLUDE_OLLAMA=true (--build-arg="INCLUDE_OLLAMA=true") this only works with http://localhost:11434 | ||||
|             OLLAMA_BASE_URL = "http://localhost:11434" | ||||
|         else:     | ||||
|             OLLAMA_BASE_URL = "http://host.docker.internal:11434" | ||||
|  | ||||
| @ -1,5 +1,7 @@ | ||||
| #!/usr/bin/env bash | ||||
| 
 | ||||
| # Get the INCLUDE_OLLAMA_ENV environment variable whcih is set in the Dockerfile | ||||
| # This includes the ollama in the image | ||||
| INCLUDE_OLLAMA=${INCLUDE_OLLAMA_ENV:-false} | ||||
| 
 | ||||
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user