1
0
mirror of https://github.com/skeeto/w64devkit.git synced 2025-07-30 04:03:05 +03:00

Reintroduce curl to download source tarballs

By downloading tarballs within the container, Docker will cache the
results and avoid redownloading them later.
This commit is contained in:
Christopher Wellons
2021-08-31 14:01:26 -04:00
parent 7b415e6ee2
commit f78b788895

View File

@ -16,11 +16,12 @@ ARG VERSION=1.8.0 \
VIM_VERSION=8.2
RUN apt-get update && apt-get install --yes --no-install-recommends \
build-essential file libgmp-dev libmpc-dev libmpfr-dev m4 texinfo zip
build-essential curl file libgmp-dev libmpc-dev libmpfr-dev m4 texinfo zip
# Download, verify, and unpack
ADD https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILS_VERSION.tar.xz \
RUN curl --insecure --location --remote-name-all \
https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILS_VERSION.tar.xz \
https://ftp.gnu.org/gnu/gcc/gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.xz \
https://ftp.gnu.org/gnu/gdb/gdb-$GDB_VERSION.tar.xz \
https://ftp.gnu.org/gnu/gmp/gmp-$GMP_VERSION.tar.xz \
@ -31,8 +32,7 @@ ADD https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILS_VERSION.tar.xz \
http://ftp.vim.org/pub/vim/unix/vim-$VIM_VERSION.tar.bz2 \
https://www.nasm.us/pub/nasm/releasebuilds/$NASM_VERSION/nasm-$NASM_VERSION.tar.xz \
http://deb.debian.org/debian/pool/main/u/universal-ctags/universal-ctags_0+git$CTAGS_VERSION.orig.tar.gz \
https://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v$MINGW_VERSION.tar.bz2 \
/
https://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v$MINGW_VERSION.tar.bz2
COPY src/SHA256SUMS $PREFIX/src/
RUN sha256sum -c $PREFIX/src/SHA256SUMS \
&& tar xJf binutils-$BINUTILS_VERSION.tar.xz \