Alex0007 commited on
Commit
85ab4ac
·
verified ·
1 Parent(s): 1327e70

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -17,6 +17,11 @@ RUN apt-get update && apt-get upgrade -y \
17
  # Setting up the working directory
18
  WORKDIR /app
19
 
 
 
 
 
 
20
  # Cloning the llama.cpp repository
21
  RUN git clone https://github.com/ggerganov/llama.cpp.git
22
 
@@ -38,4 +43,5 @@ RUN chmod -R 777 /app/llama.cpp
38
  EXPOSE 8080
39
 
40
  # Adjust the CMD to use the absolute path of the server executable
41
- CMD ["/app/llama.cpp/server", "-m", "/app/llama.cpp/models/7B/qwen7b-q4_0.gguf", "-c", "16000"]
 
 
17
  # Setting up the working directory
18
  WORKDIR /app
19
 
20
+
21
+ COPY ./requirements.txt /app/requirements.txt
22
+ RUN pip install --upgrade pip && pip install --no-cache-dir --upgrade -r /app/requirements.txt
23
+
24
+
25
  # Cloning the llama.cpp repository
26
  RUN git clone https://github.com/ggerganov/llama.cpp.git
27
 
 
43
  EXPOSE 8080
44
 
45
  # Adjust the CMD to use the absolute path of the server executable
46
+ # CMD ["/app/llama.cpp/server", "-m", "/app/llama.cpp/models/7B/qwen7b-q4_0.gguf", "-c", "16000"]
47
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]