From 3b9f0e9794c2db2ea3ed888b4ef1ec011111ab11 Mon Sep 17 00:00:00 2001 From: ccamel Date: Wed, 8 Jan 2025 09:18:51 +0100 Subject: [PATCH] build(Dockerfile): set SHELL to /bin/ash (DL4006) --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1bf30ba9..db8a3207 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,11 +7,12 @@ WORKDIR /src ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.1.2/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.1.2/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a -# hadolint ignore=DL4006,DL3018 -RUN set -eux \ - && apk add --no-cache ca-certificates build-base=0.5-r3 git=~2.45 linux-headers=6.6-r0 \ - && sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 0881c5b463e89e229b06370e9e2961aec0a5c636772d5142c68d351564464a66 \ - && sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 58e1f6bfa89ee390cb9abc69a5bc126029a497fe09dd399f38a82d0d86fe95ef +SHELL ["/bin/ash", "-o", "pipefail", "-c"] +# hadolint ignore=DL3018 +RUN \ + apk add --no-cache ca-certificates build-base=0.5-r3 git=~2.45 linux-headers=6.6-r0 \ + && sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 0881c5b463e89e229b06370e9e2961aec0a5c636772d5142c68d351564464a66 \ + && sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 58e1f6bfa89ee390cb9abc69a5bc126029a497fe09dd399f38a82d0d86fe95ef COPY . /src/