From 9a70060d306228c1af210c1fd8327e5ce83e4b6a Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Wed, 14 Feb 2024 12:06:55 -0500 Subject: [PATCH] use sh syntax --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 042ba06..34db02f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG MOD_VERSION RUN \ echo "**** retrieve latest docker and compose versions ****" && \ - if [[ -z "${MOD_VERSION+x}" ]]; then \ + if [ -z "${MOD_VERSION+x}" ]; then \ DOCKER_RELEASE=$(curl -sX GET "https://api.github.com/repos/moby/moby/releases/latest" \ | awk '/tag_name/{print $4;exit}' FS='[""]' \ | sed 's|^v||'); \ @@ -31,7 +31,7 @@ RUN \ mkdir -p \ /root-layer/docker-bins \ /tmp/docker && \ - if [[ $(uname -m) == "x86_64" ]]; then \ + if [ $(uname -m) = "x86_64" ]; then \ echo "**** grab x86_64 tarballs and binaries ****" && \ curl -fo \ /tmp/docker.tgz -L \ @@ -49,7 +49,7 @@ RUN \ curl -fo \ /root-layer/docker-bins/docker-buildx -L \ "https://github.com/docker/buildx/releases/download/${BUILDX_RELEASE}/buildx-${BUILDX_RELEASE}.linux-amd64"; \ - elif [[ $(uname -m) == "aarch64" ]]; then \ + elif [ $(uname -m) = "aarch64" ]; then \ echo "**** grab aarch64 tarballs and binaries ****" && \ curl -fo \ /tmp/docker.tgz -L \