Skip to content

Commit f3802b9

Browse files
ray(serve): drive dlc_major/minor_version LABELs from config ARGs
The Ray Serve Dockerfiles hardcoded LABEL dlc_major_version / dlc_minor_version as static text, so the config's dlc_major_version / dlc_minor_version were passed as --build-arg but silently ignored (no matching ARG). Config and LABEL could drift, and only the LABEL affected the released version — editing the config did nothing. Add ARG DLC_MAJOR_VERSION / ARG DLC_MINOR_VERSION and interpolate them into the LABELs (both Dockerfile.cuda and Dockerfile.cpu), matching vllm/sglang amzn2023 and the new ray-train image. The config build: block is now the single source of truth for the DLC version.
1 parent f5d3324 commit f3802b9

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

docker/ray/Dockerfile.cpu

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ FROM amazonlinux:2023 AS base
5454
ARG CACHE_REFRESH=0
5555
RUN dnf upgrade -y --security --releasever latest && dnf clean all && rm -rf /var/cache/dnf
5656

57+
ARG DLC_MAJOR_VERSION=1
58+
ARG DLC_MINOR_VERSION=2
5759
LABEL maintainer="Amazon AI"
58-
LABEL dlc_major_version="1"
59-
LABEL dlc_minor_version="2"
60+
LABEL dlc_major_version="${DLC_MAJOR_VERSION}"
61+
LABEL dlc_minor_version="${DLC_MINOR_VERSION}"
6062

6163
ARG PYTHON_VERSION=3.13.12
6264
ARG PYTHON_SHORT_VERSION=3.13

docker/ray/Dockerfile.cuda

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ FROM nvidia/cuda:12.9.1-runtime-amzn2023 AS base
8383
ARG CACHE_REFRESH=0
8484
RUN dnf upgrade -y --security --releasever latest && dnf clean all && rm -rf /var/cache/dnf
8585

86+
ARG DLC_MAJOR_VERSION=1
87+
ARG DLC_MINOR_VERSION=2
8688
LABEL maintainer="Amazon AI"
87-
LABEL dlc_major_version="1"
88-
LABEL dlc_minor_version="2"
89+
LABEL dlc_major_version="${DLC_MAJOR_VERSION}"
90+
LABEL dlc_minor_version="${DLC_MINOR_VERSION}"
8991

9092
ARG PYTHON_VERSION=3.13.12
9193
ARG PYTHON_SHORT_VERSION=3.13

0 commit comments

Comments
 (0)