barisaydin commited on
Commit
66c7faa
1 Parent(s): dcb90cd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -11,7 +11,8 @@ RUN apt-get update && \
11
  RUN curl -fsSL https://ollama.com/install.sh | sh
12
 
13
  # Set the Ollama host environment variable
14
- ENV OLLAMA_HOST=0.0.0.0
 
15
 
16
  # Create the Ollama directory and set permissions
17
  RUN mkdir -p /.ollama && chmod 777 /.ollama
@@ -29,7 +30,7 @@ COPY nginx.conf /etc/nginx/nginx.conf
29
  COPY validate_api_key.lua /usr/local/openresty/nginx/lua/validate_api_key.lua
30
 
31
  # Expose the Ollama server port
32
- EXPOSE 7860
33
 
34
  # Run the Ollama server and pull the model
35
  CMD ollama serve & \
 
11
  RUN curl -fsSL https://ollama.com/install.sh | sh
12
 
13
  # Set the Ollama host environment variable
14
+ # ENV OLLAMA_HOST=0.0.0.0
15
+ ENV OLLAMA_HOST=127.0.0.1
16
 
17
  # Create the Ollama directory and set permissions
18
  RUN mkdir -p /.ollama && chmod 777 /.ollama
 
30
  COPY validate_api_key.lua /usr/local/openresty/nginx/lua/validate_api_key.lua
31
 
32
  # Expose the Ollama server port
33
+ EXPOSE 11434
34
 
35
  # Run the Ollama server and pull the model
36
  CMD ollama serve & \