Skip to content

Commit 9a70060

Browse files
committed
use sh syntax
1 parent ee8157e commit 9a70060

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG MOD_VERSION
66

77
RUN \
88
echo "**** retrieve latest docker and compose versions ****" && \
9-
if [[ -z "${MOD_VERSION+x}" ]]; then \
9+
if [ -z "${MOD_VERSION+x}" ]; then \
1010
DOCKER_RELEASE=$(curl -sX GET "https://api.github.com/repos/moby/moby/releases/latest" \
1111
| awk '/tag_name/{print $4;exit}' FS='[""]' \
1212
| sed 's|^v||'); \
@@ -31,7 +31,7 @@ RUN \
3131
mkdir -p \
3232
/root-layer/docker-bins \
3333
/tmp/docker && \
34-
if [[ $(uname -m) == "x86_64" ]]; then \
34+
if [ $(uname -m) = "x86_64" ]; then \
3535
echo "**** grab x86_64 tarballs and binaries ****" && \
3636
curl -fo \
3737
/tmp/docker.tgz -L \
@@ -49,7 +49,7 @@ RUN \
4949
curl -fo \
5050
/root-layer/docker-bins/docker-buildx -L \
5151
"https://github.com/docker/buildx/releases/download/${BUILDX_RELEASE}/buildx-${BUILDX_RELEASE}.linux-amd64"; \
52-
elif [[ $(uname -m) == "aarch64" ]]; then \
52+
elif [ $(uname -m) = "aarch64" ]; then \
5353
echo "**** grab aarch64 tarballs and binaries ****" && \
5454
curl -fo \
5555
/tmp/docker.tgz -L \

0 commit comments

Comments
 (0)