Skip to content

Commit

Permalink
Install golang-1.22 on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Dec 29, 2024
1 parent 792ea64 commit 916a861
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tier2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \
jq apt-transport-https dirmngr gnupg ca-certificates xz-utils \
$([ "$(arch)" = x86_64 ] && echo libc6-dev-i386) \
openjdk-22-jdk-headless clang llvm ghc golang racket ruby scala nasm chicken-bin && \
openjdk-22-jdk-headless clang llvm ghc golang"$([ "$(arch)" = aarch64 ] && echo -1.22)" racket ruby scala nasm chicken-bin && \
if [ "$(arch)" = aarch64 ]; then update-alternatives --install /usr/bin/go go /usr/lib/go-1.22/bin/go 50 \
--slave /usr/bin/gofmt gofmt /usr/lib/go-1.22/bin/gofmt; fi && \
( export OPAMYES=1 OPAMJOBS=$(($(nproc) + 2)); \
apt-get install -y --no-install-recommends make m4 patch unzip libgmp-dev pkg-config && \
bash -c 'echo | sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) --no-backup' && \
Expand Down

0 comments on commit 916a861

Please sign in to comment.