zhengr commited on
Commit
96a528b
·
verified ·
1 Parent(s): 3f24ed2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ghcr.io/ggerganov/llama.cpp:server
2
+
3
+ RUN mkdir -p /.cache/llama.cpp
4
+ RUN chmod -R 777 /.cache/llama.cpp
5
+
6
+ # Copy the entry point script
7
+ COPY entrypoint.sh /entrypoint.sh
8
+ RUN chmod +x /entrypoint.sh
9
+
10
+ # Set the entry point script as the default command
11
+ ENTRYPOINT ["/entrypoint.sh"]
12
+
13
+ # Set the model as an environment variable (this can be overridden)
14
+ ENV model_url=${MODEL_URL}
15
+
16
+ # Expose the port that Ollama runs on
17
+ EXPOSE 7860