Skip to content

Commit 6ac9686

Browse files
tjohnson31415dtrifiro
authored andcommitted
fix: don't install system docs packages
1 parent fa4d158 commit 6ac9686

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile.ubi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARG vllm_fa_cmake_gpu_arches='80-real;90-real'
99
FROM registry.access.redhat.com/ubi9/ubi-minimal:${BASE_UBI_IMAGE_TAG} as base
1010
ARG PYTHON_VERSION
1111
ENV PYTHON_VERSION=${PYTHON_VERSION}
12-
RUN microdnf -y update && microdnf install -y \
12+
RUN microdnf -y update && microdnf install --nodocs -y \
1313
python${PYTHON_VERSION}-pip python${PYTHON_VERSION}-wheel \
1414
&& microdnf clean all
1515

@@ -19,7 +19,7 @@ ENV LANG=C.UTF-8 \
1919
LC_ALL=C.UTF-8
2020

2121
# Some utils for dev purposes - tar required for kubectl cp
22-
RUN microdnf install -y \
22+
RUN microdnf install --nodocs -y \
2323
which procps findutils tar vim git\
2424
&& microdnf clean all
2525

@@ -31,7 +31,7 @@ ARG PYTHON_VERSION
3131
ENV VIRTUAL_ENV=/opt/vllm
3232
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3333
ENV PYTHON_VERSION=${PYTHON_VERSION}
34-
RUN microdnf install -y \
34+
RUN microdnf install --nodocs -y \
3535
python${PYTHON_VERSION}-devel && \
3636
python${PYTHON_VERSION} -m venv $VIRTUAL_ENV && pip install --no-cache -U pip wheel uv && microdnf clean all
3737

@@ -45,7 +45,7 @@ RUN curl -Lo /etc/yum.repos.d/cuda-rhel9.repo \
4545
ENV CUDA_HOME="/usr/local/cuda" \
4646
PATH="${CUDA_HOME}/bin:${PATH}"
4747
ENV LD_LIBRARY_PATH="${CUDA_HOME}/lib64:${CUDA_HOME}/lib64/stubs/:${CUDA_HOME}/extras/CUPTI/lib64:${LD_LIBRARY_PATH}"
48-
RUN microdnf install -y \
48+
RUN microdnf install --nodocs -y \
4949
cuda-nvcc-12-4 cuda-nvtx-12-4 cuda-libraries-devel-12-4 && \
5050
microdnf clean all && \
5151
ln -s ${CUDA_HOME}/lib64/stubs/libcuda.so /usr/lib64/
@@ -93,7 +93,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
9393

9494
# install compiler cache to speed up compilation leveraging local or remote caching
9595
# git is required for the cutlass kernels
96-
RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && rpm -ql epel-release && microdnf install -y git ccache && microdnf clean all
96+
RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && rpm -ql epel-release && microdnf install --nodocs -y git ccache && microdnf clean all
9797

9898
COPY . .
9999

@@ -127,7 +127,7 @@ RUN --mount=type=cache,target=/root/.cache/ccache \
127127
#################### libsodium Build IMAGE ####################
128128
FROM base as libsodium-builder
129129

130-
RUN microdnf install -y gcc gzip \
130+
RUN microdnf install --nodocs -y gcc gzip \
131131
&& microdnf clean all
132132

133133
WORKDIR /usr/src/libsodium
@@ -156,7 +156,7 @@ ENV LD_LIBRARY_PATH="${VIRTUAL_ENV}/lib/python${PYTHON_VERSION}/site-packages/nv
156156
ENV LD_LIBRARY_PATH="${VIRTUAL_ENV}/lib/python${PYTHON_VERSION}/site-packages/nvidia/nvtx/lib:${LD_LIBRARY_PATH}"
157157

158158
# Triton needs a CC compiler
159-
RUN microdnf install -y gcc \
159+
RUN microdnf install --nodocs -y gcc \
160160
rsync \
161161
&& microdnf clean all
162162

0 commit comments

Comments
 (0)