Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,16 @@ ARG TARGETARCH
ARG GO_VER

# Install select development packages.
# We need to work around a bug with ARM64 emulation and `tar`:
#
# - Issue: https://github.com/tonistiigi/binfmt/issues/285
# - Workaround: https://github.com/apollographql/apollo-runtime/pull/71
#
# The locale settings below should match the defaults in /etc/locale.conf
# and are necessary for `bsdtar` to be able to extract the Go distribution.
ENV LANG=C.utf8 LC_ALL=C.utf8
RUN --mount=type=cache,id=dnf-${TARGETPLATFORM},target=/var/cache/dnf,sharing=locked \
dnf install -y git make
dnf install -y git make bsdtar && ln -sf /usr/bin/bsdtar /usr/bin/tar

# Install Go using the same commands as the pelican-build-init stage.
RUN curl -O https://dl.google.com/go/go${GO_VER}.${TARGETOS}-${TARGETARCH}.tar.gz \
Expand Down
Loading