Merge pull request #1491 from jongwu/musl_tar

musl/arm64: decompression before use the tarball.
This commit is contained in:
Fabiano Fidêncio 2021-03-04 08:58:03 +01:00 committed by GitHub
commit acc4bc57f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,7 +285,8 @@ ENV PATH=\$PATH:\$GOROOT/bin:\$GOPATH/bin
RUN cd /tmp; \
mkdir -p /usr/local/musl/; \
if curl -sLO --fail https://musl.cc/${musl_tar}; then \
cp -r ${musl_dir}/* /usr/local/musl/; \
tar -zxf ${musl_tar}; \
cp -r ${musl_dir}/* /usr/local/musl/; \
else \
git clone ${musl_source_url}; \
TARGET=${aarch64_musl_target} make -j$(nproc) -C ${musl_source_dir} install; \