hezu59158 commited on
Commit
7262a86
·
1 Parent(s): f776329

opt: use pre-built wheel for faster build

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -2,18 +2,14 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- RUN apt-get update && apt-get install -y --no-install-recommends \
6
- build-essential curl cmake \
7
- && rm -rf /var/lib/apt/lists/*
8
-
9
- RUN CMAKE_ARGS="-DGGML_BLAS=OFF -DGGML_CUDA=OFF" pip install llama-cpp-python==0.3.8 --no-cache-dir
10
 
11
  COPY requirements.txt .
12
  RUN pip install -r requirements.txt --no-cache-dir
13
 
14
  COPY app.py .
15
 
16
- HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
17
  CMD curl -f http://localhost:7860/health || exit 1
18
 
19
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN pip install llama-cpp-python==0.3.8 --no-cache-dir
 
 
 
 
6
 
7
  COPY requirements.txt .
8
  RUN pip install -r requirements.txt --no-cache-dir
9
 
10
  COPY app.py .
11
 
12
+ HEALTHCHECK --interval=60s --timeout=10s --retries=3 \
13
  CMD curl -f http://localhost:7860/health || exit 1
14
 
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]