diff --git a/Dockerfile b/Dockerfile index 9efe98c..462d09e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,10 +80,10 @@ ENV PATH /opt/maven/bin:$PATH # install aws sam ARG SAM_VERSION=1.97.0 -ARG SAM_SHA256SUM=807095974f7c98d9061907302c5adceac7adf7b8957aad04040fc2acf8d6f552 +ARG SAM_SHA256SUM=0810f3290373e20df480b56faf5e9e77e25870825dbab521758258a24aa470d9 RUN set -ex && cd ~ \ && curl -sSL "https://github.com/aws/aws-sam-cli/releases/download/${SAM_VERSION}/aws-sam-cli-linux-x86_64.zip" -o "aws-sam-cli-linux-x86_64.zip" \ - && echo "${SAM_SHA256SUM} aws-sam-cli-linux-x86_64.zip" | sha256sum -c - \ + && [ $(sha256sum aws-sam-cli-linux-x86_64.zip | cut -f1 -d' ') = ${SAM_SHA256SUM} ] \ && unzip "aws-sam-cli-linux-x86_64.zip" -d "/tmp/sam-installation" \ && "/tmp/sam-installation/install" \ && sam --version