johnpaulbin commited on
Commit
f4052bc
1 Parent(s): b3fa149

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ollama/ollama:latest
2
+
3
+ RUN apt-get update && apt-get install curl -y
4
+
5
+ # https://huggingface.co/docs/hub/spaces-sdks-docker-first-demo
6
+ RUN useradd -m -u 1000 user
7
+
8
+ USER user
9
+
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH \
12
+ OLLAMA_HOST=0.0.0.0
13
+
14
+ WORKDIR $HOME/app
15
+
16
+ COPY --chown=user:user Modelfile $HOME/app/
17
+
18
+ RUN curl -fsSL https://huggingface.co/johnpaulbin/translator-llm/resolve/main/translator-llama3.1-q4km-2.gguf?download=true -o llama.gguf
19
+
20
+ RUN ollama serve & sleep 5 && ollama create llama -f Modelfile
21
+
22
+ EXPOSE 11434