Skip to content

Commit ef8f7b4

Browse files
authored
Push go-builder image out of EOL#7284
- Golang buster is a three years old image: https://hub.docker.com/layers/library/golang/1-buster/images/sha256-dc8b9b29f69492b9d796ed60fd523db67f91da71145a547d9c375e7cc480d6aa - Buster base itself has been EOL for two years: https://www.debian.org/releases/buster/ - The golang compiler found in there is so outdated it adds a lot of CVEs into go binaries generated by it via stdlib - Node 18 is EOL too. v20 is EOL very soon (https://nodejs.org/en/about/previous-releases#looking-for-the-latest-release-of-a-version-branch) so used v22
1 parent 07d28d8 commit ef8f7b4

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

docker/builder-go.dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,15 @@
22
# Build in Golang
33
# Run npm run build-healthcheck-armv7 in the host first, another it will be super slow where it is building the armv7 healthcheck
44
############################################
5-
FROM golang:1-buster
5+
FROM golang:1-trixie
66
WORKDIR /app
77
ARG TARGETPLATFORM
88
COPY ./extra/ ./extra/
99

10-
## Switch to archive.debian.org
11-
RUN sed -i '/^deb/s/^/#/' /etc/apt/sources.list \
12-
&& echo "deb http://archive.debian.org/debian buster main contrib non-free" | tee -a /etc/apt/sources.list \
13-
&& echo "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" | tee -a /etc/apt/sources.list \
14-
&& echo "deb http://archive.debian.org/debian buster-updates main contrib non-free" | tee -a /etc/apt/sources.list
15-
1610
# Compile healthcheck.go
1711
RUN apt update && \
1812
apt --yes --no-install-recommends install curl && \
19-
curl -sL https://deb.nodesource.com/setup_18.x | bash && \
13+
curl -sL https://deb.nodesource.com/setup_22.x | bash && \
2014
apt --yes --no-install-recommends install nodejs && \
2115
node ./extra/build-healthcheck.js $TARGETPLATFORM && \
2216
apt --yes remove nodejs

0 commit comments

Comments
 (0)