From 19693cfa81e61b7bd27165b47d698050790c90e7 Mon Sep 17 00:00:00 2001 From: darksaid98 Date: Mon, 14 Aug 2023 14:27:25 +0200 Subject: [PATCH] fix: install arm --- installers/debian/Dockerfile | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/installers/debian/Dockerfile b/installers/debian/Dockerfile index 28e1aa0..fad812b 100644 --- a/installers/debian/Dockerfile +++ b/installers/debian/Dockerfile @@ -29,7 +29,18 @@ LABEL org.opencontainers.image.licenses=MIT ENV DEBIAN_FRONTEND=noninteractive -RUN dpkg --add-architecture i386 \ - && apt update \ - && apt upgrade -y \ - && apt -y --no-install-recommends install ca-certificates curl lib32gcc-s1-amd64-cross libsdl2-2.0-0:i386 git unzip zip tar jq wget +RUN apt update && apt upgrade -y \ + && apt -y --no-install-recommends install ca-certificates curl git unzip zip tar jq wget gpg + +# Only install the needed steamcmd packages on the AMD64 build +RUN if [ "$(uname -m)" = "x86_64" ]; then \ + dpkg --add-architecture i386 && \ + apt update && \ + apt -y install lib32gcc-s1 libsdl2-2.0-0:i386; \ + fi + +# Only install the needed steamcmd packages on the AARCH64 build +RUN if [ "$(uname -m)" = "aarch64" ]; then \ + apt update && \ + apt -y install lib32gcc-s1-amd64-cross libsdl2-2.0-0; \ + fi