diff --git a/tarkov/v4.0.11/Dockerfile b/tarkov/v4.0.11/Dockerfile index cdc155a..1a4560d 100644 --- a/tarkov/v4.0.11/Dockerfile +++ b/tarkov/v4.0.11/Dockerfile @@ -4,7 +4,7 @@ LABEL author="Kyle Speight" maintainer="chillcog3142@proton.me" ENV DEBIAN_FRONTEND=noninteractive -# 1. Install basics (Ubuntu usually has these, but good to ensure) +# 1. Install prerequisites RUN apt-get update && apt-get install -y \ apt-transport-https \ ca-certificates \ @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \ lsb-release \ && rm -rf /var/lib/apt/lists/* -# 2. Install .NET SDK +# 2. Install .NET SDK (Dynamic version detection) 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 '

SDK 9.*.*

' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \ @@ -21,15 +21,16 @@ 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 (Now works natively on Ubuntu) -RUN wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb \ +# 3. Install PowerShell (HARDCODED to Ubuntu 22.04 for stability) +# This works on Ubuntu 20.04, 22.04, and 24.04 +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 \ && apt-get update \ && apt-get install -y powershell \ && rm -rf /var/lib/apt/lists/* -# 4. Install remaining deps +# 4. Install remaining dependencies RUN apt-get update && apt-get install -y \ git \ git-lfs \