Skip to content

Commit ed88b37

Browse files
committed
fix docker build for Linux/amd64
1 parent 355b96d commit ed88b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG TARGETPLATFORM
66

77
# Install necessary tools for diagnostics and JDK download
88
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl net-tools lsof netcat procps less \
9-
&& if [[ "$TARGETPLATFORM" == *amd* ]]; then \
9+
&& if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
1010
export JDK_ARCH=x64; \
1111
else \
1212
export JDK_ARCH=aarch64; \

0 commit comments

Comments
 (0)