Update Dockerfile
This commit is contained in:
@@ -4,8 +4,7 @@ LABEL author="Kyle Speight" maintainer="chillcog3142@proton.me"
|
|||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# 1. CRITICAL: Install CA Certificates and GPG tools FIRST
|
# 1. Install prerequisites (including ca-certificates for HTTPS)
|
||||||
# This fixes the "exit code 100" (SSL/Download failure)
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
gnupg \
|
gnupg \
|
||||||
@@ -22,14 +21,14 @@ RUN wget -q https://dot.net/v1/dotnet-install.sh \
|
|||||||
&& ln -s /usr/share/dotnet /usr/bin/dotnet \
|
&& ln -s /usr/share/dotnet /usr/bin/dotnet \
|
||||||
&& rm dotnet-install.sh
|
&& rm dotnet-install.sh
|
||||||
|
|
||||||
# 3. Install PowerShell (Using the Ubuntu 22.04 repo)
|
# 3. Install PowerShell (FIXED: Using GPG Key method for Multi-Arch support)
|
||||||
# We add the repo manually to ensure it's correct
|
# This method automatically picks the correct package for amd64 or arm64
|
||||||
RUN wget -q https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb \
|
RUN mkdir -p /etc/apt/keyrings \
|
||||||
&& dpkg -i packages-microsoft-prod.deb \
|
&& curl -sSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /etc/apt/keyrings/microsoft-prod.gpg \
|
||||||
&& rm packages-microsoft-prod.deb \
|
&& 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 \
|
||||||
# Force update again to ensure the new repo is picked up
|
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y powershell
|
&& apt-get install -y powershell \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 4. Install remaining dependencies
|
# 4. Install remaining dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
|||||||
Reference in New Issue
Block a user