Skip to content

Commit 5715aa8

Browse files
committed
πŸ§‘β€πŸ’» update docker file for dev container
1 parent d819c64 commit 5715aa8

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

β€Ž.devcontainer/Dockerfileβ€Ž

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,27 @@ RUN apt-get update && apt-get install -y \
1616
&& apt-get clean \
1717
&& rm -rf /var/lib/apt/lists/*
1818

19-
# Install .NET 10 SDK
20-
RUN add-apt-repository ppa:dotnet/backports \
21-
&& apt-get update \
22-
&& apt-get install -y dotnet-sdk-10.0 \
19+
# Install .NET 10 SDK dependencies
20+
RUN apt-get update && apt-get install -y \
21+
ca-certificates \
22+
libc6 \
23+
libgcc-s1 \
24+
libgssapi-krb5-2 \
25+
libicu74 \
26+
libstdc++6 \
27+
tzdata \
28+
zlib1g \
2329
&& apt-get clean \
2430
&& rm -rf /var/lib/apt/lists/*
2531

32+
# Install .NET 10 SDK
33+
RUN curl -L https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh \
34+
&& chmod +x dotnet-install.sh \
35+
&& ./dotnet-install.sh --channel 10.0 --install-dir /opt/dotnet \
36+
&& rm dotnet-install.sh \
37+
export DOTNET_ROOT=/opt/dotnet \
38+
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
39+
2640
# Install Hack Nerd Font for terminal use
2741
RUN mkdir -p ~/.fonts && wget -q -P ~/.fonts https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Hack.zip \
2842
&& unzip -o ~/.fonts/Hack.zip -d ~/.fonts && fc-cache -fv \

0 commit comments

Comments
Β (0)