aexyb commited on
Commit
5dc72b7
·
verified ·
1 Parent(s): 3c13e25

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -2,18 +2,16 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Build tools for compiling llama-cpp-python
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
- build-essential \
8
- cmake \
9
- && rm -rf /var/lib/apt/lists/*
10
 
11
- # Install deps (CPU build, no CUDA)
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
  COPY app.py .
16
 
17
  EXPOSE 7860
18
-
19
  CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Only need git-lfs for model download, no build tools needed anymore
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ git-lfs \
8
+ && rm -rf /var/lib/apt/lists/* \
9
+ && git lfs install
10
 
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  COPY app.py .
15
 
16
  EXPOSE 7860
 
17
  CMD ["python", "app.py"]