From 66c53b843eea2a36a5e6724113847b0d7d307c83 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Mon, 19 Mar 2018 12:00:46 -0700 Subject: [PATCH] Use wget instead of curl inside alpine docker build For reasons I don't understand, curl started failing over the weekend with: curl: (48) An unknown option was passed in to libcurl This change to wget instead which works just as well --- build/docker/alpine.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/docker/alpine.Dockerfile b/build/docker/alpine.Dockerfile index e6a28c5f6d..bd4f99478a 100644 --- a/build/docker/alpine.Dockerfile +++ b/build/docker/alpine.Dockerfile @@ -25,7 +25,7 @@ ENV KOREBUILD_SKIP_RUNTIME_INSTALL=1 COPY global.json /tmp/global.json RUN DOTNET_SDK_VERSION="$(jq -r '.sdk.version' /tmp/global.json)" \ && echo "Installing SDK ${DOTNET_SDK_VERSION}" \ - && curl -fsSL -o /tmp/dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-alpine.3.6-x64.tar.gz \ + && wget -q --tries 10 -O /tmp/dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-alpine.3.6-x64.tar.gz \ && mkdir -p /usr/share/dotnet \ && tar xzf /tmp/dotnet.tar.gz -C /usr/share/dotnet \ && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet