Skip to content

Commit 52f5c20

Browse files
committed
chore: build on Debian Buster
This allows us to have a very low GLIBC requirement.
1 parent a1dc40b commit 52f5c20

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Dockerfile.build

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
FROM --platform=linux/amd64 docker.io/golang:1.22.2
1+
FROM --platform=linux/amd64 debian:buster-slim
22

33
# Build tools
4-
RUN apt-get update && apt-get install -y zip autoconf autopoint libtool
4+
RUN sed -i 's/deb.debian.org/archive.debian.org/' /etc/apt/sources.list && \
5+
apt-get update && apt-get install -y wget curl git zip gcc g++ make autoconf autopoint pkg-config libtool
6+
7+
# Install golang
8+
RUN wget https://go.dev/dl/go1.25.5.linux-amd64.tar.gz && \
9+
tar -C /usr/local -xzf go1.25.5.linux-amd64.tar.gz && \
10+
rm go1.25.5.linux-amd64.tar.gz
11+
ENV PATH="/usr/local/go/bin:$PATH"
512

613
# Install toolchain
714
ARG TARGET

0 commit comments

Comments
 (0)