Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

Dockerfile

Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Dockerfile 760 B
ARG IMAGE_NAME
FROM ${IMAGE_NAME}:12.8.1-devel-ubi9 AS base

ENV PKG_CMD=yum

FROM base AS base-amd64

ENV NV_CUDNN_VERSION=9.8.0.87-1
ENV NV_CUDNN_PACKAGE=libcudnn9-cuda-12-${NV_CUDNN_VERSION}
ENV NV_CUDNN_PACKAGE_DEV=libcudnn9-devel-cuda-12-${NV_CUDNN_VERSION}

FROM base AS base-arm64

ENV NV_CUDNN_VERSION=9.8.0.87-1
ENV NV_CUDNN_PACKAGE=libcudnn9-cuda-12-${NV_CUDNN_VERSION}
ENV NV_CUDNN_PACKAGE_DEV=libcudnn9-devel-cuda-12-${NV_CUDNN_VERSION}


FROM base-${TARGETARCH}

ARG TARGETARCH

LABEL maintainer="NVIDIA CORPORATION <sw-cuda-installer@nvidia.com>"

LABEL com.nvidia.cudnn.version="${NV_CUDNN_VERSION}"

RUN ${PKG_CMD} install -y \
    ${NV_CUDNN_PACKAGE} \
    ${NV_CUDNN_PACKAGE_DEV} \
    && ${PKG_CMD} clean all \
    && rm -rf /var/cache/yum/*