Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -2,14 +2,13 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
-
#
|
| 6 |
RUN apt-get update && apt-get install -y build-essential gcc g++ cmake && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 12 |
-
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
| 13 |
|
| 14 |
COPY . .
|
| 15 |
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
+
# Install the correct Debian compilers AND cmake so it builds fast
|
| 6 |
RUN apt-get update && apt-get install -y build-essential gcc g++ cmake && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
|
| 10 |
+
# Notice I removed the extra-index-url so it builds cleanly for Debian!
|
| 11 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
| 12 |
|
| 13 |
COPY . .
|
| 14 |
|