From e15ca5c4661b7084ff99029cb4617b4773f668e8 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Tue, 26 May 2026 15:43:39 +0700 Subject: [PATCH] docker: update Dockerfile to use bookworm Stick to go1.25 for now, since using go1.26 causing a runtime panic when building arm platforms. --- docker/Dockerfile | 5 +++-- docker/Dockerfile.debug | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 68d4d6d..59cc575 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -8,11 +8,12 @@ # - Non-cgo ctrld binary. # # CI_COMMIT_TAG is used to set the version of ctrld binary. -FROM golang:1.20-bullseye as base +FROM golang:1.25-bookworm AS base WORKDIR /app -RUN apt-get update && apt-get install -y upx-ucl +RUN echo "deb http://deb.debian.org/debian bookworm-backports main" | tee /etc/apt/sources.list.d/backports.list +RUN apt update && apt install -t bookworm-backports upx-ucl COPY . . diff --git a/docker/Dockerfile.debug b/docker/Dockerfile.debug index 2ba3602..d916a97 100644 --- a/docker/Dockerfile.debug +++ b/docker/Dockerfile.debug @@ -8,11 +8,12 @@ # - Non-cgo ctrld binary. # # CI_COMMIT_TAG is used to set the version of ctrld binary. -FROM golang:bullseye as base +FROM golang:1.25-bookworm AS base WORKDIR /app -RUN apt-get update && apt-get install -y upx-ucl +RUN echo "deb http://deb.debian.org/debian bookworm-backports main" | tee /etc/apt/sources.list.d/backports.list +RUN apt update && apt install -t bookworm-backports upx-ucl COPY . .