build: Declare extra variable (#730)

This commit is contained in:
Kroese 2024-05-13 04:02:25 +02:00 committed by GitHub
parent d1f1772d74
commit d9fc2714a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,9 +15,9 @@ ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND="noninteractive"
ARG DEBCONF_NONINTERACTIVE_SEEN="true"
RUN set -eu && \
apt-get update && \
RUN set -eu && extra="" && \
if [ "$TARGETPLATFORM" != "linux/amd64" ]; then extra="qemu-user"; fi && \
apt-get update && \
apt-get --no-install-recommends -y install \
jq \
tini \