diff --git a/container-stack/rokur/Containerfile b/container-stack/rokur/Containerfile index 5ec5979..858315a 100644 --- a/container-stack/rokur/Containerfile +++ b/container-stack/rokur/Containerfile @@ -10,9 +10,16 @@ FROM cgr.dev/chainguard/wolfi-base:latest AS build RUN apk add --no-cache curl unzip # Install Deno (pinned version for reproducibility). +# Using direct binary download from GitHub releases — the previous +# `deno.land/install-manual@vX.Y.Z.sh` URL doesn't return a parseable +# install script (sh hits "syntax error: unexpected redirection" when +# piping its content). ARG DENO_VERSION=2.2.8 -RUN curl -fsSL https://deno.land/install-manual@v${DENO_VERSION}.sh | sh \ - && mv /root/.deno/bin/deno /usr/local/bin/deno +RUN curl -fsSL "https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/deno-x86_64-unknown-linux-gnu.zip" \ + -o /tmp/deno.zip \ + && unzip /tmp/deno.zip -d /usr/local/bin \ + && rm /tmp/deno.zip \ + && chmod +x /usr/local/bin/deno # Pre-cache dependencies by copying deno.json first. WORKDIR /build