Skip to content

Commit a1298dc

Browse files
committed
Update Dockerfile
1 parent 1b8027c commit a1298dc

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3737
ca-certificates \
3838
&& rm -rf /var/lib/apt/lists/*
3939

40-
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
41-
&& dpkg -i packages-microsoft-prod.deb \
42-
&& rm packages-microsoft-prod.deb
43-
44-
RUN apt-get update && apt-get install -y --no-install-recommends \
45-
dotnet-sdk-10.0 \
46-
&& rm -rf /var/lib/apt/lists/*
40+
# Install dotnet-sdk 10.0 using install script to bypass GPG SHA1 issues
41+
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh \
42+
&& chmod +x dotnet-install.sh \
43+
&& ./dotnet-install.sh --channel 10.0 --install-dir /usr/share/dotnet \
44+
&& rm dotnet-install.sh
45+
46+
# Set dotnet environment variables
47+
ENV DOTNET_ROOT=/usr/share/dotnet
48+
ENV PATH=$PATH:$DOTNET_ROOT
4749

4850
# Install bun
4951
COPY --from=bun /usr/local/bin/bun /usr/local/bin/bun

0 commit comments

Comments
 (0)