File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,15 @@ ARG VARIANT=9.0-bookworm-slim
2
2
FROM mcr.microsoft.com/dotnet/sdk:${VARIANT}
3
3
ENV PATH $PATH:/home/vscode/.dotnet:/home/vscode/.dotnet/tools
4
4
5
+ ARG VARIANT
6
+ RUN if [ "${VARIANT#*noble}" != "$VARIANT" ]; then \
7
+ if id "ubuntu" &>/dev/null; then \
8
+ echo "Deleting user 'ubuntu' for $VARIANT" && userdel -f -r ubuntu || echo "Failed to delete ubuntu user for $VARIANT" ; \
9
+ else \
10
+ echo "User 'ubuntu' does not exist for $VARIANT" ; \
11
+ fi; \
12
+ fi
13
+
5
14
# clear this environment variable so xml docs from NuGet packages are unpackaged. The default dotnet/sdk image sets it to 'skip'.
6
15
# see https://github.com/dotnet/dotnet-docker/issues/2790
7
16
ENV NUGET_XMLDOC_MODE=
Original file line number Diff line number Diff line change 7
7
"ghcr.io/devcontainers/features/common-utils:2" : {
8
8
"installZsh" : " true" ,
9
9
"username" : " vscode" ,
10
- "upgradePackages" : " true"
10
+ "upgradePackages" : " true" ,
11
+ "userUid" : " 1000" ,
12
+ "userGid" : " 1000"
11
13
},
12
14
"ghcr.io/devcontainers/features/node:1" : {
13
15
"version" : " none"
You can’t perform that action at this time.
0 commit comments