Skip to content

Build your personal knowledge base with Trilium Notes

fix(docker): move the legacy image off end-of-life bullseye

Elian Doran845e63059b5c
diff --git a/apps/server/Dockerfile b/apps/server/Dockerfile
index ab571955ac..0fc8530342 100644
--- a/apps/server/Dockerfile
+++ b/apps/server/Dockerfile
@@ -2,7 +2,7 @@
# for every supported platform/arch inside the package itself, which the server
# build copies into ./dist. There is therefore no native compile step and no
# builder stage any more. The Linux prebuilds need glibc >= 2.34 (x64) and
-# >= 2.38 (arm64), so the base image is trixie rather than bullseye (glibc 2.31).
+# >= 2.38 (arm64), so the base image is trixie rather than bookworm (glibc 2.36).
# Platforms without a prebuild (32-bit ARM) are served by Dockerfile.legacy,
# which still compiles from source.
FROM node:24.20.0-trixie-slim
diff --git a/apps/server/Dockerfile.legacy b/apps/server/Dockerfile.legacy
index 946e7b868c..a483bde766 100644
--- a/apps/server/Dockerfile.legacy
+++ b/apps/server/Dockerfile.legacy
@@ -1,4 +1,4 @@
-FROM node:22.21.0-bullseye-slim AS builder
+FROM node:22.21.0-bookworm-slim AS builder
RUN corepack enable
# Install build tools required to compile native addons (e.g. better-sqlite3) on ARM
@@ -13,7 +13,7 @@ RUN apt-get update && \
# N-API prebuilds and must keep compiling from source:
# - 32-bit ARM (linux/arm/v7) has no prebuild at all;
# - linux/arm/v8 normalizes to arm64, whose prebuild needs glibc >= 2.38,
-# while this image stays on bullseye (glibc 2.31) to support old hosts.
+# while this image stays on bookworm (glibc 2.36) to support old hosts.
# Asking for it is not implicit: better-sqlite3's binding.gyp resolves both of
# its targets to `type: none` whenever a prebuild for the host exists, so the
# node-gyp run would emit a stamp file and no addon. force_build restores the
@@ -26,7 +26,7 @@ COPY ./docker/package.json ./docker/pnpm-workspace.yaml /usr/src/app/
# We have to use --no-frozen-lockfile due to CKEditor patches
RUN pnpm install --no-frozen-lockfile --prod && pnpm rebuild
-FROM node:22.21.0-bullseye-slim
+FROM node:22.21.0-bookworm-slim
# Install only runtime dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
diff --git a/apps/server/Dockerfile.rootless b/apps/server/Dockerfile.rootless
index 16ed39d6d4..0e85edd083 100644
--- a/apps/server/Dockerfile.rootless
+++ b/apps/server/Dockerfile.rootless
@@ -1,6 +1,6 @@
# See the comment in Dockerfile: better-sqlite3 v13 ships N-API prebuilds, so
# there is no native compile step and no builder stage, and the Linux prebuilds
-# need trixie's glibc rather than bullseye's.
+# need trixie's glibc rather than bookworm's.
FROM node:24.20.0-trixie-slim
# Create a non-root user with configurable UID/GID
ARG USER=trilium