Update Dockerfile for prerequisites and installation steps

This commit is contained in:
Kyle Speight
2026-05-29 23:00:14 -07:00
committed by GitHub
parent 5d5953ded5
commit ee8ced458a
+9 -8
View File
@@ -4,16 +4,17 @@ LABEL author="Kyle Speight" maintainer="chillcog3142@proton.me"
ENV DEBIAN_FRONTEND=noninteractive
# 1. Install prerequisites
# 1. CRITICAL: Install CA Certificates and GPG tools FIRST
# This fixes the "exit code 100" (SSL/Download failure)
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
gnupg \
lsb-release \
wget \
curl \
lsb-release \
&& rm -rf /var/lib/apt/lists/*
# 2. Install .NET SDK (Dynamic version detection)
# 2. Install .NET SDK
RUN wget -q https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& D_V="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/9.0 | grep -i '<h3 id="sdk-9.*">SDK 9.*.*</h3>' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \
@@ -21,14 +22,14 @@ RUN wget -q https://dot.net/v1/dotnet-install.sh \
&& ln -s /usr/share/dotnet /usr/bin/dotnet \
&& rm dotnet-install.sh
# 3. Install PowerShell (HARDCODED to Ubuntu 22.04 for stability)
# This works on Ubuntu 20.04, 22.04, and 24.04
# 3. Install PowerShell (Using the Ubuntu 22.04 repo)
# We add the repo manually to ensure it's correct
RUN wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& rm packages-microsoft-prod.deb \
# Force update again to ensure the new repo is picked up
&& apt-get update \
&& apt-get install -y powershell \
&& rm -rf /var/lib/apt/lists/*
&& apt-get install -y powershell
# 4. Install remaining dependencies
RUN apt-get update && apt-get install -y \