Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM nvidia/cuda:12.3.2-cudnn9-
|
2 |
|
3 |
ARG DEBIAN_FRONTEND=noninteractive
|
4 |
|
@@ -23,6 +23,8 @@ COPY ./requirements.txt /app/requirements.txt
|
|
23 |
RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
|
24 |
RUN CMAKE_ARGS="-DLLAMA_CUDA=on" pip3 install --no-cache-dir llama-cpp-python
|
25 |
|
|
|
|
|
26 |
|
27 |
RUN useradd -m -u 1000 user
|
28 |
USER user
|
|
|
1 |
+
FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04 AS build
|
2 |
|
3 |
ARG DEBIAN_FRONTEND=noninteractive
|
4 |
|
|
|
23 |
RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
|
24 |
RUN CMAKE_ARGS="-DLLAMA_CUDA=on" pip3 install --no-cache-dir llama-cpp-python
|
25 |
|
26 |
+
FROM nvcr.io/nvidia/pytorch:24.02-py3
|
27 |
+
COPY --from=build /app /app
|
28 |
|
29 |
RUN useradd -m -u 1000 user
|
30 |
USER user
|