Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ci: Pin Docker base images to linux/amd64.

Aman Agrawal1ba33c17dc83
diff --git a/tools/ci/Dockerfile b/tools/ci/Dockerfile
index 0d06a0b1683..fb98fa70f8a 100644
--- a/tools/ci/Dockerfile
+++ b/tools/ci/Dockerfile
@@ -11,7 +11,9 @@
# tools/ci/build-docker-images will rebuild all images, but not push them.
ARG BASE_IMAGE
-FROM $BASE_IMAGE
+# Pin to linux/amd64 so builds on Apple Silicon (or other non-amd64
+# hosts) still produce images compatible with our GitHub Actions runners.
+FROM --platform=linux/amd64 $BASE_IMAGE
RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
diff --git a/tools/ci/Dockerfile.prod b/tools/ci/Dockerfile.prod
index 6fa4f9fd343..912d4f08ab0 100644
--- a/tools/ci/Dockerfile.prod
+++ b/tools/ci/Dockerfile.prod
@@ -7,7 +7,8 @@
# docker push zulip/ci:bookworm-7.0
ARG BASE_IMAGE
-FROM $BASE_IMAGE
+# See tools/ci/Dockerfile for why we pin to linux/amd64.
+FROM --platform=linux/amd64 $BASE_IMAGE
# Download the release tarball, start rabbitmq server and install the server
ARG VERSION