From acfcce1ffae06198c42cea9d2380606a7a5c18cf Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 2 Feb 2023 12:47:26 -0800 Subject: [PATCH] release/Dockerfile: Use if-thens to avoid non zero exit codes --- ci/release/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/release/Dockerfile b/ci/release/Dockerfile index 2171bb21c..3d7f843bc 100644 --- a/ci/release/Dockerfile +++ b/ci/release/Dockerfile @@ -9,7 +9,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash -s - && \ apt-get install -y nodejs # https://github.com/microsoft/playwright/issues/18319 # Hopefully soon. -RUN [ "$TARGETARCH" = amd64 ] && npx playwright install-deps +RUN if [ "$TARGETARCH" = amd64 ]; then npx playwright install-deps; fi RUN adduser --gecos '' --disabled-password debian \ && echo "debian ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd @@ -28,7 +28,7 @@ RUN mkdir -p /usr/local/lib/d2 \ && rm -Rf /tmp/d2-*-linux-"$TARGETARCH".tar.gz USER debian:debian -RUN [ "$TARGETARCH" = amd64 ] && d2 init-playwright +RUN if [ "$TARGETARCH" = amd64 ]; then d2 init-playwright; fi WORKDIR /home/debian/src EXPOSE 8080