mangoman7002 commited on
Commit
4c98b4e
·
verified ·
1 Parent(s): 6bfd1f7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /code
4
+
5
+
6
+ RUN pip install --no-cache-dir --upgrade llama-cpp-python llama-cpp-python[server]
7
+ RUN apt update
8
+ RUN apt install wget
9
+ RUN apt install -y protobuf-compiler libprotobuf-dev
10
+ RUN useradd -m -u 1000 user
11
+ USER user
12
+ ENV HOME=/home/user \
13
+ PATH=/home/user/.local/bin:$PATH
14
+
15
+ WORKDIR $HOME/app
16
+
17
+ COPY --chown=user . $HOME/app
18
+ RUN wget 'https://huggingface.co/ha1772007/qwen2-1.5b-instruct-function-calling-v1-GGUF/resolve/main/qwen2-1.5b-instruct-function-calling-v1.Q2_K%20(1).gguf'
19
+ RUN python3 -m llama_cpp.server --model "qwen2-1.5b-instruct-function-calling-v1.Q2_K%20(1).gguf"