make the installer image work for ARM64 and AMD64

This commit is contained in:
Quinten
2023-07-29 19:21:34 +02:00
committed by GitHub
parent 1246f2b681
commit 310ed2569e
2 changed files with 11 additions and 5 deletions

View File

@@ -29,7 +29,12 @@ 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 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
# 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