Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
#FROM ubuntu
|
2 |
-
FROM python:3.
|
3 |
#FROM nvidia/cuda:12.3.0-devel-ubuntu22.04
|
4 |
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
|
5 |
python3 \
|
@@ -21,8 +21,8 @@ RUN chmod 777 .
|
|
21 |
|
22 |
COPY ./requirements.txt /code/requirements.txt
|
23 |
|
24 |
-
RUN CMAKE_ARGS="-DLLAMA_NATIVE=off" pip install llama-cpp-python \
|
25 |
-
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
26 |
|
27 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
28 |
|
|
|
1 |
#FROM ubuntu
|
2 |
+
FROM python:3.11-slim-bullseye
|
3 |
#FROM nvidia/cuda:12.3.0-devel-ubuntu22.04
|
4 |
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
|
5 |
python3 \
|
|
|
21 |
|
22 |
COPY ./requirements.txt /code/requirements.txt
|
23 |
|
24 |
+
RUN CMAKE_ARGS="-DLLAMA_NATIVE=off" pip install llama-cpp-python==0.2.78 \
|
25 |
+
--force-reinstall --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
26 |
|
27 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
28 |
|