StrawberryJelly commited on
Commit
482ef78
·
verified ·
1 Parent(s): cc30fea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -4
Dockerfile CHANGED
@@ -1,17 +1,23 @@
1
  FROM python:3.10-slim
2
 
3
- RUN apt-get update && apt-get install -y --no-install-recommends build-essential cmake git && rm -rf /var/lib/apt/lists/*
 
 
4
 
5
  WORKDIR /code
6
 
7
  COPY requirements.txt .
8
 
9
- RUN pip install --no-cache-dir -r requirements.txt
 
10
 
11
- RUN python -c "from huggingface_hub import hf_hub_download; hf_hub_download(repo_id='Qwen/Qwen2.5-7B-Instruct-GGUF', filename='qwen2.5-7b-instruct-q4_k_m.gguf', local_dir='/models')"
 
 
 
12
 
13
  COPY app.py .
14
 
15
  EXPOSE 7860
16
 
17
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ build-essential cmake git libopenblas-dev && \
5
+ rm -rf /var/lib/apt/lists/*
6
 
7
  WORKDIR /code
8
 
9
  COPY requirements.txt .
10
 
11
+ RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" \
12
+ pip install --no-cache-dir -r requirements.txt
13
 
14
+ RUN python -c "from huggingface_hub import hf_hub_download; \
15
+ hf_hub_download(repo_id='Qwen/Qwen2.5-7B-Instruct-GGUF', \
16
+ filename='qwen2.5-7b-instruct-q4_k_m.gguf', \
17
+ local_dir='/models')"
18
 
19
  COPY app.py .
20
 
21
  EXPOSE 7860
22
 
23
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]