Skip to content

Commit

Permalink
fix docker build for Linux/amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
popduke committed May 23, 2024
1 parent 355b96d commit ed88b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG TARGETPLATFORM

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

0 comments on commit ed88b37

Please sign in to comment.