From 25d21e11b69e2b9ec07964c6dedc1d4905c43e95 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Thu, 16 Mar 2023 12:37:47 +0100 Subject: [PATCH] Make binary executable --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0c189f..094a0f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,9 @@ RUN apk --update add --no-cache \ curl \ jq && \ curl -L https://api.github.com/repos/mikefarah/yq/releases/latest | \ - jq -r '.assets[] | select(.name | contains("yq_linux_amd64")) | .browser_download_url' | \ - xargs -I {} curl -L -o /tmp/yq {} + jq -r '.assets[] | select(.name | endswith("yq_linux_amd64")) | .browser_download_url' | \ + xargs -I {} curl -L -o /tmp/yq {} && \ + chmod +x /tmp/yq FROM debian:11-slim