subhrajit-mohanty commited on
Commit
3941f98
·
verified ·
1 Parent(s): 01f0289

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -16,12 +16,12 @@ USER ollama-user
16
  # Set Ollama to listen on all network interfaces
17
  ENV OLLAMA_HOST=0.0.0.0:7860
18
 
19
- # Pull the desired model during the build
20
- RUN ollama pull steamdj/llama3.1-cpu-only
21
-
22
- # Expose the default port (7860)
23
  EXPOSE 7860
24
 
25
- # Run Ollama serve in the background
26
- ENTRYPOINT ["/bin/ollama"]
27
- CMD ["serve"]
 
 
 
 
16
  # Set Ollama to listen on all network interfaces
17
  ENV OLLAMA_HOST=0.0.0.0:7860
18
 
19
+ # Expose the default port
 
 
 
20
  EXPOSE 7860
21
 
22
+ # Copy the entrypoint script
23
+ COPY entrypoint.sh /usr/local/bin/entrypoint.sh
24
+ RUN chmod +x /usr/local/bin/entrypoint.sh
25
+
26
+ # Use the custom entrypoint script
27
+ ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]