Skip to content

Commit

Permalink
Use .NET 8 docker images for devcontainer (#3760)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone authored Nov 17, 2023
1 parent 700139d commit e6d1e79
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:1-7.0-jammy
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:1-8.0-jammy

USER vscode
WORKDIR /home/vscode
Expand All @@ -10,12 +10,9 @@ RUN set -eux \
&& rm packages-microsoft-prod.deb \
&& sudo apt update \
&& sudo apt-get install -y libmsquic \
&& wget -q https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh \
&& bash dotnet-install.sh --channel 8.0 --install-dir ~/.dotnet8.0 \
&& sudo rm -rf /var/lib/apt/lists/* \
&& sudo apt-get clean \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

# Set environment variables
ENV DOTNET_ROOT=/home/vscode/.dotnet8.0 \
PATH=/home/vscode/.dotnet8.0:/home/vscode/.dotnet8.0/tools:/home/vscode/.cargo/bin:$PATH
ENV PATH=/home/vscode/.cargo/bin:$PATH

0 comments on commit e6d1e79

Please sign in to comment.