fix wget pull for llvm and ninja
This commit is contained in:
parent
5cc99f5692
commit
f0038c8f9c
|
@ -9,6 +9,7 @@ FROM ${REGISTRY}/py-setuptools as py-setuptools
|
|||
FROM ${REGISTRY}/cmake as cmake
|
||||
FROM ${REGISTRY}/ninja as ninja
|
||||
FROM ${REGISTRY}/busybox as busybox
|
||||
FROM ${REGISTRY}/openssl as openssl
|
||||
|
||||
FROM busybox as base
|
||||
ARG VERSION
|
||||
|
@ -24,9 +25,10 @@ COPY --from=musl . /
|
|||
COPY --from=gcc . /
|
||||
COPY --from=python . /
|
||||
COPY --from=py-setuptools . /
|
||||
COPY --from=openssl . /
|
||||
|
||||
FROM base as fetch
|
||||
RUN wget ${SRC_SITE}/llvmorg-${SRC_VERSION}/llvm-project-${SRC_VERSION}.src.tar.xz
|
||||
RUN wget --no-check-certificate ${SRC_SITE}/llvmorg-${SRC_VERSION}/llvm-project-${SRC_VERSION}.src.tar.xz
|
||||
RUN echo "$(printenv SRC_HASH_${VERSION//./_}) llvm-project-${SRC_VERSION}.src.tar.xz" | sha256sum -c
|
||||
|
||||
FROM fetch as build
|
||||
|
|
|
@ -5,6 +5,8 @@ FROM ${REGISTRY}/python:latest as python
|
|||
FROM ${REGISTRY}/musl:latest as musl
|
||||
FROM ${REGISTRY}/gcc:latest as gcc
|
||||
FROM ${REGISTRY}/busybox:latest as busybox
|
||||
FROM ${REGISTRY}/ca-certificates:latest as ca-certificates
|
||||
FROM ${REGISTRY}/openssl:latest as openssl
|
||||
|
||||
FROM busybox as base
|
||||
ENV SRC_SITE=https://github.com/martine/ninja/archive/
|
||||
|
@ -15,9 +17,11 @@ COPY --from=make . /
|
|||
COPY --from=python . /
|
||||
COPY --from=musl . /
|
||||
COPY --from=gcc . /
|
||||
COPY --from=openssl . /
|
||||
FROM ${REGISTRY}/busybox:latest as busybox
|
||||
|
||||
FROM base as fetch
|
||||
RUN wget ${SRC_SITE}/v${SRC_VERSION}.tar.gz
|
||||
RUN wget --no-check-certificate ${SRC_SITE}/v${SRC_VERSION}.tar.gz
|
||||
RUN echo "${SRC_HASH} v${SRC_VERSION}.tar.gz" | sha256sum -c
|
||||
|
||||
FROM fetch as build
|
||||
|
|
Reference in New Issue