Skip to content

dotnet-install.sh fails to install SDK on Alpine Linux #9144

Description

@natemcmaster

Steps to reproduce

FROM microsoft/dotnet:2.1-runtime-deps-alpine
WORKDIR /code/build

RUN apk add --no-cache \
        bash \
        wget \
        curl \
        icu-libs \
        openssl

RUN wget https://raw.githubusercontent.com/dotnet/cli/release/2.1.3xx/scripts/obtain/dotnet-install.sh \
    && chmod +x dotnet-install.sh \
    && ./dotnet-install.sh --version 2.1.300-preview2-008251

docker build . -t test

Expected behavior

Download and extract https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.1.300-preview2-008251/dotnet-sdk-2.1.300-preview2-008251-alpine.3.6-x64.tar.gz

Actual behavior

# ./dotnet-install.sh --version 2.1.300-preview2-008251
dotnet_install: Error: Unable to locate libunwind. Install libunwind to continue
dotnet_install: Error: Unable to locate libssl. Install libssl to continue
dotnet_install: Error: Unable to locate libicu. Install libicu to continue
dotnet_install: Error: Unable to locate libcurl. Install libcurl to continue

You can disable pre-req check..

export DOTNET_INSTALL_SKIP_PREREQS=1

but then this fails because cp -n is not supported in Alpine

cp: unrecognized option: n

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions