Skip to content

Commit 768fcfe

Browse files
Copilotcommjoen
andcommitted
Upgrade to .NET 8.0 with comprehensive musl compatibility libraries
Co-authored-by: commjoen <[email protected]>
1 parent 37a1720 commit 768fcfe

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

Dockerfile_webdesktop

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN \
99

1010
RUN \
1111
echo "**** install packages ****" && \
12-
apk add --no-cache shadow keepassxc radare2 aws-cli geany git gdb build-base icu-libs icu-data-full ca-certificates libgcc libstdc++ zlib libintl musl-locales && \
12+
apk add --no-cache shadow keepassxc radare2 aws-cli geany git gdb build-base icu-libs icu-data-full ca-certificates libgcc libstdc++ zlib libintl musl-locales musl-locales-lang lttng-ust libunwind libgdiplus && \
1313
echo "**** adding abc user to root for Docker ****" && \
1414
usermod -aG root abc && \
1515
touch /var/run/docker.sock && \
@@ -18,11 +18,14 @@ RUN \
1818
rm -rf /tmp/*
1919

2020
RUN \
21-
echo "installing dotnet with musl compatibility" && \
22-
apk add --no-cache curl icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib && \
23-
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 6.0 --install-dir /etc/dotnet && \
21+
echo "installing dotnet 8.0 with comprehensive musl compatibility" && \
22+
apk add --no-cache curl icu-libs icu-data-full krb5-libs libgcc libintl libssl3 libstdc++ zlib \
23+
musl-locales musl-locales-lang tzdata ca-certificates lttng-ust libunwind libgdiplus && \
24+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 8.0 --install-dir /etc/dotnet && \
2425
export DOTNET_ROOT=/etc/dotnet && \
2526
export PATH="/etc/dotnet:/etc/dotnet/tools:$PATH" && \
27+
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 && \
28+
export DOTNET_RUNNING_IN_CONTAINER=true && \
2629
echo "Checking dotnet installation..." && \
2730
/etc/dotnet/dotnet --info && \
2831
echo "Installing ilspycmd..." && \

Dockerfile_webdesktopk8s

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN \
99

1010
RUN \
1111
echo "**** install packages ****" && \
12-
apk add --no-cache shadow keepassxc radare2 aws-cli geany git gdb build-base icu-libs icu-data-full ca-certificates libgcc libstdc++ zlib libintl musl-locales && \
12+
apk add --no-cache shadow keepassxc radare2 aws-cli geany git gdb build-base icu-libs icu-data-full ca-certificates libgcc libstdc++ zlib libintl musl-locales musl-locales-lang lttng-ust libunwind libgdiplus && \
1313
echo "**** adding abc user to root for Docker ****" && \
1414
usermod -aG root abc && \
1515
touch /var/run/docker.sock && \
@@ -23,11 +23,14 @@ RUN echo "**** clone wrongsecrets.git for webtop in k8s ****" && \
2323
git clone https://github.com/OWASP/wrongsecrets.git
2424

2525
RUN \
26-
echo "installing dotnet with musl compatibility" && \
27-
apk add --no-cache curl icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib && \
28-
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 6.0 --install-dir /etc/dotnet && \
26+
echo "installing dotnet 8.0 with comprehensive musl compatibility" && \
27+
apk add --no-cache curl icu-libs icu-data-full krb5-libs libgcc libintl libssl3 libstdc++ zlib \
28+
musl-locales musl-locales-lang tzdata ca-certificates lttng-ust libunwind libgdiplus && \
29+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 8.0 --install-dir /etc/dotnet && \
2930
export DOTNET_ROOT=/etc/dotnet && \
3031
export PATH="/etc/dotnet:/etc/dotnet/tools:$PATH" && \
32+
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 && \
33+
export DOTNET_RUNNING_IN_CONTAINER=true && \
3134
echo "Checking dotnet installation..." && \
3235
/etc/dotnet/dotnet --info && \
3336
echo "Installing ilspycmd..." && \

wrongsecret-desktop-resources/startwm.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export DOTNET_ROOT=/etc/dotnet
44
export DOTNET_INSTALL_DIR="/etc/dotnet"
55
export PATH="$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools"
66
export PATH="$PATH:/config/.dotnet/tools"
7+
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
8+
export DOTNET_RUNNING_IN_CONTAINER=true
79
/startpulse.sh &
810
ln -s -r /var/tmp/wrongsecrets /config/Desktop/wrongsecrets
911
ln -s /var/tmp/wrongsecrets/welcome.md /config/Desktop/welcome.md

0 commit comments

Comments
 (0)