We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3fb0c6 + 41caad3 commit 34373d2Copy full SHA for 34373d2
Dockerfile
@@ -1,5 +1,15 @@
1
-FROM golang:1.24.7-trixie AS builder
2
-RUN apt update && apt install -y libsystemd-dev
+FROM debian:bullseye AS builder
+# Using Debian instead of the official Golang image because it’s based on newer OS versions
3
+# with newer glibc, which causes compatibility issues.
4
+
5
+RUN apt-get update && apt-get install -y \
6
+ curl git build-essential pkg-config libsystemd-dev
7
8
+ARG GO_VERSION=1.24.9
9
+RUN curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-$(dpkg --print-architecture).tar.gz -o go.tar.gz && \
10
+ tar -C /usr/local -xzf go.tar.gz && rm go.tar.gz
11
+ENV PATH="/usr/local/go/bin:${PATH}"
12
13
WORKDIR /tmp/src
14
COPY go.mod .
15
COPY go.sum .
0 commit comments