Update Dockerfile

This commit is contained in:
Kyle Speight
2026-05-29 23:08:08 -07:00
committed by GitHub
parent dd8aaffa23
commit c80f2650b6
+8 -9
View File
@@ -4,8 +4,7 @@ LABEL author="Kyle Speight" maintainer="chillcog3142@proton.me"
ENV DEBIAN_FRONTEND=noninteractive
# 1. CRITICAL: Install CA Certificates and GPG tools FIRST
# This fixes the "exit code 100" (SSL/Download failure)
# 1. Install prerequisites (including ca-certificates for HTTPS)
RUN apt-get update && apt-get install -y \
ca-certificates \
gnupg \
@@ -22,14 +21,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 (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/24.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
# 3. Install PowerShell (FIXED: Using GPG Key method for Multi-Arch support)
# This method automatically picks the correct package for amd64 or arm64
RUN mkdir -p /etc/apt/keyrings \
&& curl -sSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /etc/apt/keyrings/microsoft-prod.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft-prod.gpg] https://packages.microsoft.com/repos/microsoft-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/microsoft-prod.list \
&& apt-get update \
&& apt-get install -y powershell
&& apt-get install -y powershell \
&& rm -rf /var/lib/apt/lists/*
# 4. Install remaining dependencies
RUN apt-get update && apt-get install -y \