Skip to content

Commit 3d5d152

Browse files
authored
Merge pull request redpanda-data#25277 from redpanda-data/DEVPROD-2622-bazel-dockerfile
[bazel] use bazelisk-linux-$TARGETARCH in dockerfile
2 parents 8af1891 + aced991 commit 3d5d152

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/docker/bazel.dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ARG BASE_IMAGE_OS_NAME=fedora
22
ARG BASE_IMAGE_OS_VERSION=38
33
FROM ${BASE_IMAGE_OS_NAME}:${BASE_IMAGE_OS_VERSION}
4+
ARG TARGETARCH
45

56
COPY --chown=0:0 bazel/install-deps.sh /
67

@@ -9,7 +10,7 @@ RUN dnf install -y wget || { apt-get update && apt install -y wget; }
910
# ubuntu already has this installed by default
1011
RUN dnf install -y procps-ng || true
1112
RUN wget -O /usr/local/bin/bazel \
12-
https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 && \
13+
https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-${TARGETARCH} && \
1314
chmod +x /usr/local/bin/bazel
1415

1516
# run after wget installation to take advantage of pkg cache cleaning

0 commit comments

Comments
 (0)