srivatsavdamaraju commited on
Commit
56d6402
·
verified ·
1 Parent(s): e4181a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -15,10 +15,10 @@ RUN curl -sSL https://ollama.com/install.sh | bash
15
  # Expose the port for the model server (assuming default port 5000)
16
  EXPOSE 5000
17
 
18
- # Start the Ollama service, pull the model, and then serve it
19
  CMD /bin/bash -c "
20
- # Start Ollama service in the background
21
- nohup ollama & \
22
  # Wait for Ollama to be ready
23
  sleep 10 && \
24
  # Pull the llama-3.2 model
 
15
  # Expose the port for the model server (assuming default port 5000)
16
  EXPOSE 5000
17
 
18
+ # Start Ollama service, pull the model, and then serve it
19
  CMD /bin/bash -c "
20
+ # Start the Ollama service in the foreground
21
+ ollama & \
22
  # Wait for Ollama to be ready
23
  sleep 10 && \
24
  # Pull the llama-3.2 model