pypi.manylinux.Dockerfile 793 Bytes
Newer Older
1
FROM quay.io/pypa/manylinux_2_28_x86_64 AS builder_amd64
2

3
RUN dnf config-manager --add-repo https://developer.download.nvidia.cn/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
4

5
ARG CUDA_VERSION=12.8
6
7
8
ENV CUDA_VERSION=${CUDA_VERSION}

FROM quay.io/pypa/manylinux_2_28_aarch64 AS builder_arm64
9

10
RUN dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/sbsa/cuda-rhel8.repo
11

12
13
14
15
ARG CUDA_VERSION=12.8
ENV CUDA_VERSION=${CUDA_VERSION}

ARG TARGETARCH
16
FROM builder_${TARGETARCH}
17
18
19
20

ENV DEBIAN_FRONTEND=noninteractive \
    TZ=Etc/UTC

21
22
23
24
ENV PATH="/usr/local/cuda/bin:${PATH}"

ENV LD_LIBRARY_PATH="/usr/local/cuda/lib64:${LD_LIBRARY_PATH}"

25
RUN set -eux; \
26
    pipx install cibuildwheel; \
27
    git config --global --add safe.directory '/tilelang'
28
29

WORKDIR /tilelang