From e0aae404aefbb63182ad65e8c7ad6cd23a6fe179 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 10 Jul 2022 12:33:43 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20=20modified:=20Dockerfi?= =?UTF-8?q?le=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95d6dbf..5c4244a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,12 +9,13 @@ RUN apk --no-cache add --update \ mkdir -p /tmp/deno RUN { [ "$(uname -m)" = "amd64" ] || [ "$(uname -m)" = "x86_64" ]; } && \ - curl -Lsf "https://github.com/denoland/deno/releases/download/${VERSION}/deno-x86_64-unknown-linux-gnu.zip" -o /tmp/deno.zip + curl -Lsf "https://github.com/denoland/deno/releases/download/${VERSION}/deno-x86_64-unknown-linux-gnu.zip" -o /tmp/deno.zip || true RUN { [ "$(uname -m)" = "arm64" ] || [ "$(uname -m)" = "aarch64" ]; } && \ - curl -Lsf https://github.com/LukeChannings/deno-arm64/releases/download/${VERSION}/deno-$(echo $TARGETPLATFORM | tr '/' '-').zip -o /tmp/deno.zip + curl -Lsf https://github.com/LukeChannings/deno-arm64/releases/download/${VERSION}/deno-$(echo $TARGETPLATFORM | tr '/' '-').zip -o /tmp/deno.zip || true -RUN cd /tmp/deno && \ +RUN [ -f "/tmp/deno.zip" ] && \ + cd /tmp/deno && \ unzip /tmp/deno.zip && \ mv -fv /tmp/deno/deno /usr/bin/deno && \ chmod +x /usr/bin/deno && \