Skip to content

Commit 39dea7b

Browse files
Copilotcommjoen
andcommitted
Fix webdesktop container dotnet installation segfault
Co-authored-by: commjoen <[email protected]>
1 parent 4a30707 commit 39dea7b

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

Dockerfile_webdesktop

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,14 @@ RUN \
2121
echo "installing dotnet" && \
2222
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
2323
chmod +x dotnet-install.sh && \
24-
./dotnet-install.sh --install-dir /etc/dotnet --version latest && \
24+
./dotnet-install.sh --install-dir /etc/dotnet --channel 6.0 --version latest && \
25+
rm dotnet-install.sh && \
2526
export DOTNET_ROOT=/etc/dotnet && \
2627
export PATH="/etc/dotnet:/etc/dotnet/tools:$PATH" && \
27-
dotnet --info && \
28-
dotnet tool install ilspycmd --version 9.0.0.7889 --tool-path /etc/dotnet/tools
29-
30-
# Add secret handling for Kubernetes-specific Docker builds
31-
# Create the /app directory to store the secret
32-
RUN mkdir -p /app
33-
34-
# Use a separate RUN command for --mount
35-
RUN --mount=type=secret,id=mysecret \
36-
export SECRET_VALUE=$(cat /run/secrets/mysecret) && \
37-
echo $SECRET_VALUE >> /app/secret.txt
28+
echo "Checking dotnet installation..." && \
29+
/etc/dotnet/dotnet --info && \
30+
echo "Installing ilspycmd..." && \
31+
/etc/dotnet/dotnet tool install ilspycmd --version 9.0.0.7889 --tool-path /etc/dotnet/tools
3832

3933
WORKDIR /config/Desktop
4034

0 commit comments

Comments
 (0)