diff --git a/src/Dockerfile b/src/Dockerfile index b059d3e..c01304f 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -6,7 +6,8 @@ RUN apt-get update && apt-get install unzip -y WORKDIR /src -RUN curl -L https://raw.githubusercontent.com/DuendeSoftware/IdentityServer.Quickstart.UI/main/getmain.sh | bash +COPY ./getui.sh ./getui.sh +RUN ./getui.sh COPY ./OpenIdConnectServerMock.csproj ./OpenIdConnectServerMock.csproj RUN dotnet restore diff --git a/src/getui.sh b/src/getui.sh new file mode 100755 index 0000000..2d37735 --- /dev/null +++ b/src/getui.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e + +TAG="6.3.0" + +SOURCE="https://github.com/DuendeSoftware/IdentityServer.Quickstart.UI/archive/refs/tags/$TAG.zip" +curl -L -o ui.zip "$SOURCE" + +unzip -d ui ui.zip + +[[ -d Pages ]] || mkdir Pages +[[ -d wwwroot ]] || mkdir wwwroot + +cp -r ./ui/IdentityServer.Quickstart.UI-$TAG/Pages/* Pages +cp -r ./ui/IdentityServer.Quickstart.UI-$TAG/wwwroot/* wwwroot + +rm -rf ui ui.zip