Skip to content

Commit 422434d

Browse files
committed
Dockerfile for .NET lab spaces
1 parent e5a275f commit 422434d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM labspace-workspace-base
2+
3+
USER root
4+
# https://learn.microsoft.com/en-us/dotnet/core/install/linux-debian
5+
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
6+
&& sudo dpkg -i packages-microsoft-prod.deb \
7+
&& rm packages-microsoft-prod.deb
8+
9+
RUN sudo apt-get update \
10+
&& sudo apt-get install -y dotnet-sdk-10.0 \
11+
&& rm -rf /var/lib/apt/lists/*
12+
13+
USER 1000
14+
RUN code-server --install-extension ms-dotnettools.csdevkit \
15+
&& rm -rf /home/coder/.local/share/code-server/CachedExtensionVSIXs/.trash/*

0 commit comments

Comments
 (0)