Skip to content

Commit 6cfb2ff

Browse files
fix: warnings about casing when building the Docker image (#318)
Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
1 parent 474e539 commit 6cfb2ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ARG PYTHON_VERSION=3.11
2121
ARG WHEEL_VERSION=""
2222

2323
## Base Layer ##################################################################
24-
FROM registry.access.redhat.com/ubi9/ubi:${BASE_UBI_IMAGE_TAG} as base
24+
FROM registry.access.redhat.com/ubi9/ubi:${BASE_UBI_IMAGE_TAG} AS base
2525

2626
ARG PYTHON_VERSION
2727
ARG USER
@@ -44,14 +44,14 @@ RUN useradd -u $USER_UID ${USER} -m -g 0 --system && \
4444
chmod g+rx /home/${USER}
4545

4646
## Used as base of the Release stage to removed unrelated the packages and CVEs
47-
FROM base as release-base
47+
FROM base AS release-base
4848

4949
# Removes the python3.9 code to eliminate possible CVEs. Also removes dnf
5050
RUN rpm -e $(dnf repoquery python3-* -q --installed) dnf python3 yum crypto-policies-scripts
5151

5252

5353
## CUDA Base ###################################################################
54-
FROM base as cuda-base
54+
FROM base AS cuda-base
5555

5656
# Ref: https://docs.nvidia.com/cuda/archive/12.1.0/cuda-toolkit-release-notes/
5757
ENV CUDA_VERSION=12.1.0 \
@@ -75,7 +75,7 @@ ENV CUDA_HOME="/usr/local/cuda" \
7575
LD_LIBRARY_PATH="/usr/local/nvidia/lib:/usr/local/nvidia/lib64:$CUDA_HOME/lib64:$CUDA_HOME/extras/CUPTI/lib64:${LD_LIBRARY_PATH}"
7676

7777
## CUDA Development ############################################################
78-
FROM cuda-base as cuda-devel
78+
FROM cuda-base AS cuda-devel
7979

8080
# Ref: https://developer.nvidia.com/nccl/nccl-legacy-downloads
8181
ENV NV_CUDA_CUDART_DEV_VERSION=12.1.55-1 \
@@ -99,7 +99,7 @@ RUN dnf config-manager \
9999

100100
ENV LIBRARY_PATH="$CUDA_HOME/lib64/stubs"
101101

102-
FROM cuda-devel as python-installations
102+
FROM cuda-devel AS python-installations
103103

104104
ARG WHEEL_VERSION
105105
ARG USER
@@ -142,7 +142,7 @@ RUN --mount=type=cache,target=/home/${USER}/.cache/pip,uid=${USER_UID} \
142142
rm $(head bdist_name) /tmp/bdist_name
143143

144144
## Final image ################################################
145-
FROM release-base as release
145+
FROM release-base AS release
146146
ARG USER
147147
ARG PYTHON_VERSION
148148

0 commit comments

Comments
 (0)