File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,16 @@ COPY *.patch /usr/src/
1818RUN set -ex \
1919 && export PYTHON_VERSION=${PYTHON_VERSION} \
2020 && apk add --no-cache --virtual .fetch-deps \
21- cosign \
2221 openssl \
2322 tar \
2423 xz \
24+ && apk add --no-cache --virtual .cosign cosign \
25+ --repository="https://dl-cdn.alpinelinux.org/alpine/v3.21/community" \
2526 \
2627 && curl -L -o python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
2728 && curl -L -o python.tar.xz.sigstore "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.sigstore" \
2829 && cosign verify-blob \
30+ --new-bundle-format \
2931 --certificate-identity "${CERT_IDENTITY}" \
3032 --certificate-oidc-issuer "${CERT_OIDC_ISSUER}" \
3133 --bundle python.tar.xz.sigstore \
@@ -63,7 +65,7 @@ RUN set -ex \
6365 zlib-dev \
6466 bluez-dev \
6567 # add build deps before removing fetch deps in case there's overlap
66- && apk del .fetch-deps \
68+ && apk del .fetch-deps .cosign \
6769 \
6870 && for i in /usr/src/*.patch; do \
6971 patch -d /usr/src/python -p 1 < "${i}" ; done \
Original file line number Diff line number Diff line change @@ -18,14 +18,16 @@ COPY *.patch /usr/src/
1818RUN set -ex \
1919 && export PYTHON_VERSION=${PYTHON_VERSION} \
2020 && apk add --no-cache --virtual .fetch-deps \
21- cosign \
2221 openssl \
2322 tar \
2423 xz \
24+ && apk add --no-cache --virtual .cosign cosign \
25+ --repository="https://dl-cdn.alpinelinux.org/alpine/v3.21/community" \
2526 \
2627 && curl -L -o python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
2728 && curl -L -o python.tar.xz.sigstore "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.sigstore" \
2829 && cosign verify-blob \
30+ --new-bundle-format \
2931 --certificate-identity "${CERT_IDENTITY}" \
3032 --certificate-oidc-issuer "${CERT_OIDC_ISSUER}" \
3133 --bundle python.tar.xz.sigstore \
@@ -63,7 +65,7 @@ RUN set -ex \
6365 zlib-dev \
6466 bluez-dev \
6567 # add build deps before removing fetch deps in case there's overlap
66- && apk del .fetch-deps \
68+ && apk del .fetch-deps .cosign \
6769 \
6870 && for i in /usr/src/*.patch; do \
6971 patch -d /usr/src/python -p 1 < "${i}" ; done \
Original file line number Diff line number Diff line change @@ -18,14 +18,16 @@ COPY *.patch /usr/src/
1818RUN set -ex \
1919 && export PYTHON_VERSION=${PYTHON_VERSION} \
2020 && apk add --no-cache --virtual .fetch-deps \
21- cosign \
2221 openssl \
2322 tar \
2423 xz \
24+ && apk add --no-cache --virtual .cosign cosign \
25+ --repository="https://dl-cdn.alpinelinux.org/alpine/v3.21/community" \
2526 \
2627 && curl -L -o python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
2728 && curl -L -o python.tar.xz.sigstore "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.sigstore" \
2829 && cosign verify-blob \
30+ --new-bundle-format \
2931 --certificate-identity "${CERT_IDENTITY}" \
3032 --certificate-oidc-issuer "${CERT_OIDC_ISSUER}" \
3133 --bundle python.tar.xz.sigstore \
@@ -63,7 +65,7 @@ RUN set -ex \
6365 zlib-dev \
6466 bluez-dev \
6567 # add build deps before removing fetch deps in case there's overlap
66- && apk del .fetch-deps \
68+ && apk del .fetch-deps .cosign \
6769 \
6870 && for i in /usr/src/*.patch; do \
6971 patch -d /usr/src/python -p 1 < "${i}" ; done \
You can’t perform that action at this time.
0 commit comments