diff --git a/tools/docker/python/amd64/manylinux.Dockerfile b/tools/docker/python/amd64/manylinux.Dockerfile index 03304a7843..1933738a40 100644 --- a/tools/docker/python/amd64/manylinux.Dockerfile +++ b/tools/docker/python/amd64/manylinux.Dockerfile @@ -37,13 +37,14 @@ RUN git clone -b "${GIT_BRANCH}" --single-branch "$GIT_URL" /project \ && git reset --hard "${GIT_SHA1}" WORKDIR /project +# Copy build script and setup env +ENV PLATFORM x86_64 +ARG PYTHON_VERSION +ENV PYTHON_VERSION ${PYTHON_VERSION:-3} COPY build-manylinux.sh . RUN chmod a+x "build-manylinux.sh" FROM devel AS build -ENV PLATFORM x86_64 -ARG PYTHON_VERSION -ENV PYTHON_VERSION ${PYTHON_VERSION:-3} RUN ./build-manylinux.sh build FROM build as test diff --git a/tools/docker/python/amd64/musllinux.Dockerfile b/tools/docker/python/amd64/musllinux.Dockerfile index 7f89f6da7f..4c2f64fdbf 100644 --- a/tools/docker/python/amd64/musllinux.Dockerfile +++ b/tools/docker/python/amd64/musllinux.Dockerfile @@ -32,13 +32,14 @@ RUN git clone -b "${GIT_BRANCH}" --single-branch "$GIT_URL" /project \ && git reset --hard "${GIT_SHA1}" WORKDIR /project +# Copy build script and setup env +ENV PLATFORM x86_64 +ARG PYTHON_VERSION +ENV PYTHON_VERSION ${PYTHON_VERSION:-3} COPY build-musllinux.sh . RUN chmod a+x "build-musllinux.sh" FROM devel AS build -ENV PLATFORM x86_64 -ARG PYTHON_VERSION -ENV PYTHON_VERSION ${PYTHON_VERSION:-3} RUN ./build-musllinux.sh build FROM build as test diff --git a/tools/docker/python/arm64/manylinux.Dockerfile b/tools/docker/python/arm64/manylinux.Dockerfile index 1bfc67ac34..116fe68de2 100644 --- a/tools/docker/python/arm64/manylinux.Dockerfile +++ b/tools/docker/python/arm64/manylinux.Dockerfile @@ -39,13 +39,14 @@ RUN git clone -b "${GIT_BRANCH}" --single-branch "$GIT_URL" /project \ && git reset --hard "${GIT_SHA1}" WORKDIR /project +# Copy build script and setup env +ENV PLATFORM aarch64 +ARG PYTHON_VERSION +ENV PYTHON_VERSION ${PYTHON_VERSION:-3} COPY build-manylinux.sh . RUN chmod a+x "build-manylinux.sh" FROM devel AS build -ENV PLATFORM aarch64 -ARG PYTHON_VERSION -ENV PYTHON_VERSION ${PYTHON_VERSION:-3} RUN ./build-manylinux.sh build FROM build as test diff --git a/tools/docker/python/arm64/musllinux.Dockerfile b/tools/docker/python/arm64/musllinux.Dockerfile index e8981cd210..719dc6417e 100644 --- a/tools/docker/python/arm64/musllinux.Dockerfile +++ b/tools/docker/python/arm64/musllinux.Dockerfile @@ -32,13 +32,14 @@ RUN git clone -b "${GIT_BRANCH}" --single-branch "${GIT_URL}" /project \ && git reset --hard "${GIT_SHA1}" WORKDIR /project +# Copy build script and setup env +ENV PLATFORM aarch64 +ARG PYTHON_VERSION +ENV PYTHON_VERSION ${PYTHON_VERSION:-3} COPY build-musllinux.sh . RUN chmod a+x "build-musllinux.sh" FROM devel AS build -ENV PLATFORM aarch64 -ARG PYTHON_VERSION -ENV PYTHON_VERSION ${PYTHON_VERSION:-3} RUN ./build-musllinux.sh build FROM build as test