Skip to content

Commit c7fdd5f

Browse files
committed
use sh syntax
1 parent 21c2413 commit c7fdd5f

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
@@ -7,7 +7,7 @@ ARG MOD_VERSION
77

88
RUN \
99
echo "**** retrieve latest version ****" && \
10-
if [[ -z "${MOD_VERSION+x}" ]]; then \
10+
if [ -z "${MOD_VERSION+x}" ]; then \
1111
DOCKER_RELEASE=$(curl -sX GET "https://api.github.com/repos/moby/moby/releases/latest" \
1212
| awk '/tag_name/{print $4;exit}' FS='[""]' \
1313
| sed 's|^v||'); \
@@ -26,7 +26,7 @@ RUN \
2626
BUILDX_RELEASE=$(curl -sX GET "https://api.github.com/repos/docker/buildx/releases/latest" \
2727
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
2828
mkdir -p /root-layer/docker-tgz && \
29-
if [[ $(uname -m) == "x86_64" ]]; then \
29+
if [ $(uname -m) = "x86_64" ]; then \
3030
echo "**** grab x86_64 tarballs and binaries ****" && \
3131
curl -fo \
3232
/root-layer/docker-tgz/docker.tgz -L \
@@ -40,7 +40,7 @@ RUN \
4040
curl -fo \
4141
/root-layer/docker-tgz/docker-buildx -L \
4242
"https://github.com/docker/buildx/releases/download/${BUILDX_RELEASE}/buildx-${BUILDX_RELEASE}.linux-amd64"; \
43-
elif [[ $(uname -m) == "aarch64" ]]; then \
43+
elif [ $(uname -m) = "aarch64" ]; then \
4444
echo "**** grab aarch64 tarballs and binaries ****" && \
4545
curl -fo \
4646
/root-layer/docker-tgz/docker.tgz -L \

0 commit comments

Comments
 (0)