File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1- ARG CUDA_IMAGE="12.1.1 -devel-ubuntu22.04"
1+ ARG CUDA_IMAGE="12.5.0 -devel-ubuntu22.04"
22FROM nvidia/cuda:${CUDA_IMAGE}
33
44# We need to set the host to 0.0.0.0 to allow outside access
Original file line number Diff line number Diff line change 11# Define the image argument and provide a default value
2- ARG IMAGE=python:3-slim-bullseye
2+ ARG IMAGE=python:3-slim-bookworm
33
44# Use the image as specified
55FROM ${IMAGE}
@@ -12,7 +12,9 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
1212 python3 \
1313 python3-pip \
1414 ninja-build \
15- build-essential
15+ build-essential \
16+ && apt-get clean \
17+ && rm -rf /var/lib/apt/lists/*
1618
1719RUN python3 -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings starlette-context
1820
Original file line number Diff line number Diff line change 1- FROM python:3-slim-bullseye
1+ FROM python:3-slim-bookworm
22
33# We need to set the host to 0.0.0.0 to allow outside access
44ENV HOST 0.0.0.0
55
66COPY . .
77
88# Install the package
9- RUN apt update && apt install -y libopenblas-dev ninja-build build-essential pkg-config
9+ RUN apt update && apt install -y libopenblas-dev ninja-build build-essential pkg-config \
10+ && apt-get clean \
11+ && rm -rf /var/lib/apt/lists/* /tmp/*
12+
1013RUN python -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings starlette-context
1114
1215RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama_cpp_python --verbose
Original file line number Diff line number Diff line change 11# Define the image argument and provide a default value
2- ARG IMAGE=python:3-slim-bullseye
2+ ARG IMAGE=python:3-slim-bookworm
33
44# Use the image as specified
55FROM ${IMAGE}
@@ -13,7 +13,9 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
1313 python3-pip \
1414 ninja-build \
1515 libopenblas-dev \
16- build-essential
16+ build-essential \
17+ && apt-get clean \
18+ && rm -rf /var/lib/apt/lists/* /tmp/*
1719
1820RUN mkdir /app
1921WORKDIR /app
You can’t perform that action at this time.
0 commit comments