Skip to content

Commit e31718f

Browse files
Copilotcommjoen
andcommitted
Fix Alpine package unavailability and pre-commit formatting issues
Co-authored-by: commjoen <[email protected]>
1 parent 75f3aa2 commit e31718f

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

Dockerfile_webdesktop

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ RUN \
1818
rm -rf /tmp/*
1919

2020
RUN \
21-
echo "installing dotnet via Alpine packages" && \
22-
apk add --no-cache dotnet8-sdk dotnet8-runtime aspnetcore8-runtime && \
23-
export DOTNET_ROOT=/usr/share/dotnet && \
24-
export PATH="/usr/share/dotnet:$PATH" && \
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 && \
24+
export DOTNET_ROOT=/etc/dotnet && \
25+
export PATH="/etc/dotnet:/etc/dotnet/tools:$PATH" && \
2526
echo "Checking dotnet installation..." && \
26-
dotnet --info && \
27+
/etc/dotnet/dotnet --info && \
2728
echo "Installing ilspycmd..." && \
28-
dotnet tool install --global ilspycmd --version 9.0.0.7889
29+
/etc/dotnet/dotnet tool install ilspycmd --version 9.0.0.7889 --tool-path /etc/dotnet/tools
2930

3031
WORKDIR /config/Desktop
3132

Dockerfile_webdesktopk8s

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ 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 via Alpine packages" && \
27-
apk add --no-cache dotnet8-sdk dotnet8-runtime aspnetcore8-runtime && \
28-
export DOTNET_ROOT=/usr/share/dotnet && \
29-
export PATH="/usr/share/dotnet:$PATH" && \
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 && \
29+
export DOTNET_ROOT=/etc/dotnet && \
30+
export PATH="/etc/dotnet:/etc/dotnet/tools:$PATH" && \
3031
echo "Checking dotnet installation..." && \
31-
dotnet --info && \
32+
/etc/dotnet/dotnet --info && \
3233
echo "Installing ilspycmd..." && \
33-
dotnet tool install --global ilspycmd --version 9.0.0.7889
34+
/etc/dotnet/dotnet tool install ilspycmd --version 9.0.0.7889 --tool-path /etc/dotnet/tools
3435

3536
WORKDIR /config/Desktop
3637

sed99X60d

Whitespace-only changes.

wrongsecret-desktop-resources/startwm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
export DOTNET_ROOT=/usr/share/dotnet
4-
export DOTNET_INSTALL_DIR="/usr/share/dotnet"
5-
export PATH="$PATH:$DOTNET_ROOT:/root/.dotnet/tools"
3+
export DOTNET_ROOT=/etc/dotnet
4+
export DOTNET_INSTALL_DIR="/etc/dotnet"
5+
export PATH="$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools"
66
export PATH="$PATH:/config/.dotnet/tools"
77
/startpulse.sh &
88
ln -s -r /var/tmp/wrongsecrets /config/Desktop/wrongsecrets

0 commit comments

Comments
 (0)