# The image we use to build the static "alpine" binaries # that we deploy. # We are staying on 3.18 and patching in go1.22 instead of moving to 3.20 # due to issues with compiling the go-sqlite3 lib on 3.20. # We intend to drop the alpine build entirely, see https://internal-repo/issues/336. FROM alpine:3.18 RUN set -eu RUN apk update RUN apk add ca-certificates RUN /usr/sbin/update-ca-certificates RUN apk add --no-cache bash perl coreutils python3 musl gcc g++ clang lld make cmake ninja mandoc linux-headers patch wget # Explicitly install go outside of apk since the default version is 1.18 RUN wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz RUN echo 8920ea521bad8f6b7bc377b4824982e011c19af27df88a815e3586ea895f1b36 go1.22.3.linux-amd64.tar.gz | sha256sum --check RUN tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz; rm go1.22.3.linux-amd64.tar.gz ENV PATH="${PATH}:/usr/local/go/bin" ENV IN_TERN_BUILD_CONTAINER Y