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
This commit is contained in:
Nate McMaster 2018-03-19 12:00:46 -07:00
parent 35716ebf2c
commit 66c53b843e
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
1 changed files with 1 additions and 1 deletions

View File

@ -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