Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
FROM ubuntu
|
2 |
-
|
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,10 +21,10 @@ RUN chmod 777 .
|
|
21 |
|
22 |
COPY ./requirements.txt /code/requirements.txt
|
23 |
|
24 |
-
RUN pip install llama-cpp-python \
|
25 |
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
26 |
|
27 |
-
RUN
|
28 |
|
29 |
RUN useradd -m -u 1000 user
|
30 |
|
|
|
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 \
|
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 |
|
29 |
RUN useradd -m -u 1000 user
|
30 |
|