[docker] fix multi-arch docker builds (#11199)

This commit is contained in:
Jonathan Hui
2025-01-27 19:57:19 -08:00
committed by GitHub
parent 6694d5c275
commit 0f094dd266
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -85,6 +85,11 @@ jobs:
--build-arg VCS_REF=${GITHUB_SHA::8} \
${TAGS} --file ${DOCKER_FILE} ." >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v8.1.5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
+6
View File
@@ -4,6 +4,12 @@ FROM ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
ENV LANG en_US.UTF-8
# Resolves issue with installing libc-bin
RUN rm /var/lib/dpkg/info/libc-bin.* \
&& apt-get clean -y \
&& apt-get update -y \
&& apt-get install --no-install-recommends -y libc-bin
RUN set -x \
&& apt-get update -y \
&& apt-get install -y locales \