Skip to content

Commit 1fadba8

Browse files
committed
refactor: bump docker base
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 7af3743 commit 1fadba8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pack/Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
# - GPUSTACK_RUNTIME_BASE_IMAGE: Base image for the gpustack-runtime stage.
1717
# - GPUSTACK_RUNTIME_ROCM_VERSION: Version of ROCm to vendor libraries from, update this if project dependencies has changed.
1818
# - GPUSTACK_RUNTIME_DOCKER_MIRRORED_NAME_FILTER_LABELS: Semicolon-separated list of labels to filter mirrored images when deploying mirrored deployment.
19-
ARG PYTHON_VERSION=3.11
19+
ARG PYTHON_VERSION=3.12
2020
ARG GPUSTACK_RUNTIME_BASE_IMAGE=runtime
2121
ARG GPUSTACK_RUNTIME_ROCM_VERSION=7.0.2
2222
ARG GPUSTACK_RUNTIME_DOCKER_MIRRORED_NAME_FILTER_LABELS
2323

24-
FROM ubuntu:22.04@sha256:3c61d3759c2639d4b836d32a2d3c83fa0214e36f195a3421018dbaaf79cbe37f AS runtime
24+
FROM ubuntu:24.04@sha256:d1e2e92c075e5ca139d51a140fff46f84315c0fdce203eab2807c7e495eff4f9 AS runtime
2525
SHELL ["/bin/bash", "-eo", "pipefail", "-c"]
2626

2727
ARG TARGETPLATFORM
@@ -124,10 +124,10 @@ RUN <<EOF
124124
openssl libssl-dev libsqlite3-dev lcov libomp-dev \
125125
libblas-dev liblapack-dev libopenblas-dev libblas3 liblapack3 libhdf5-dev \
126126
libxml2 libxslt1-dev libgl1-mesa-glx libgmpxx4ldbl \
127-
libncurses5-dev libreadline6-dev libsqlite3-dev \
127+
libncurses5-dev libreadline6-dev \
128128
liblzma-dev lzma lzma-dev tk-dev uuid-dev libmpdec-dev \
129129
ffmpeg libjpeg-dev libpng-dev libtiff-dev libwebp-dev \
130-
libnuma-dev libjemalloc-dev
130+
libnuma-dev libjemalloc-dev libibverbs-dev
131131

132132
# Cleanup
133133
rm -rf /var/tmp/* \
@@ -169,8 +169,11 @@ RUN <<EOF
169169
python${PYTHON_VERSION}-distutils \
170170
python${PYTHON_VERSION}-lib2to3 \
171171
python${PYTHON_VERSION}-gdbm \
172-
python${PYTHON_VERSION}-tk \
173-
libibverbs-dev
172+
python${PYTHON_VERSION}-tk
173+
if (( $(echo "${PYTHON_VERSION} <= 3.11" | bc -l) )); then
174+
apt-get install -y --no-install-recommends \
175+
python${PYTHON_VERSION}-distutils
176+
fi
174177

175178
# Update alternatives
176179
if [[ -f /etc/alternatives/python3 ]]; then update-alternatives --remove-all python3; fi; update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1
@@ -243,7 +246,6 @@ ARG TARGETARCH
243246

244247
## Configure data volume
245248
VOLUME /var/lib/gpustack
246-
ENV GPUSTACK_RUNTIME_DOCKER_EPHEMERAL_FILES_DIR="/var/lib/gpustack/cache/gpustack-runtime"
247249

248250
## Install Skopeo
249251

0 commit comments

Comments
 (0)