Skip to content

Commit 0650942

Browse files
committed
Still dealing with the fallout from the bad SDK 7.0.200 release
1 parent bc28626 commit 0650942

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ RUN ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
2525
# end of install powershell
2626

2727
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build
28+
#############
29+
# temp fix due to sdk 7.0.201 using a preview version of msbuild
30+
# installing sdk 7.0.103 which doesn't have this problem
31+
#############
32+
RUN apk update && apk upgrade && apk add bash
33+
RUN wget https://dot.net/v1/dotnet-install.sh && chmod +x ./dotnet-install.sh
34+
ENV DOTNET_INSTALL_FOLDER=/usr/share/dotnet
35+
RUN ./dotnet-install.sh --version 7.0.103 --install-dir ${DOTNET_INSTALL_FOLDER}
36+
############# the above block can be deleted when the SDK issue has been resolved
37+
2838
WORKDIR /markdown-link-check-log-parser
2939
COPY ["MarkdownLinkCheckLogParser/NuGet.Config", "MarkdownLinkCheckLogParser/"]
3040
COPY ["MarkdownLinkCheckLogParser/src/MarkdownLinkCheckLogParserCli/MarkdownLinkCheckLogParserCli.csproj", "MarkdownLinkCheckLogParser/src/MarkdownLinkCheckLogParserCli/"]

0 commit comments

Comments
 (0)