Alex0007 commited on
Commit
43b8c19
1 Parent(s): 3fda329

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -35,8 +35,8 @@ RUN mkdir -p models/7B && wget -O models/7B/${MODEL_FILE} ${MODEL_URL}
35
  # Changing ownership to a non-root user
36
  RUN useradd -m -u 1000 user && chown -R user:user /app
37
  USER user
38
- ENV HOME=/home/user \
39
- PATH=/home/user/.local/bin:$PATH
40
  RUN chmod -R 777 /app/llama.cpp
41
 
42
  # Setting up the application
@@ -45,4 +45,4 @@ EXPOSE 8080
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", "--host", "0.0.0.0", "--port", "8000"]
47
  # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
48
- CMD ["python3", "-m", "llama_cpp.server", "--model", "/app/llama.cpp/models/7B/qwen7b-q4_0.gguf", "--host", "0.0.0.0", "--port", "8000"]
 
35
  # Changing ownership to a non-root user
36
  RUN useradd -m -u 1000 user && chown -R user:user /app
37
  USER user
38
+ ENV HOME=/home/user
39
+ ENV PATH=/home/user/.local/bin:$PATH
40
  RUN chmod -R 777 /app/llama.cpp
41
 
42
  # Setting up the application
 
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", "--host", "0.0.0.0", "--port", "8000"]
47
  # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
48
+ CMD ["python3", "-m", "llama_cpp.server", "--model", "/app/llama.cpp/models/7B/qwen7b-q4_0.gguf", "--host", "0.0.0.0", "--port", "8000", "--n_threads", "16"]