Fdgg55 commited on
Commit
79e191e
·
verified ·
1 Parent(s): 93d673e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ollama/ollama:latest
2
+
3
+ # Hugging Face requires apps to run on port 7860
4
+ ENV OLLAMA_HOST=0.0.0.0:7860
5
+
6
+ # Fix permissions so Hugging Face can read/write the AI models
7
+ RUN chmod -R 777 /.ollama
8
+
9
+ # Download dolphin-llama3 into the server during the build process
10
+ RUN nohup bash -c "ollama serve &" && sleep 5 && ollama pull dolphin-llama3
11
+
12
+ # Open the port
13
+ EXPOSE 7860
14
+
15
+ # Start the AI Server
16
+ ENTRYPOINT ["ollama", "serve"]