chore (deps): upgrade base image to trixie and python 3.14 (#4718)

* trixie and python 3.13

* Fix backend tests

* Fix various references to previous python 3.11

* Upgrade to python 3.14

* Use official version of caddy

* Update backend/Dockerfile

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix dev build

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Davide SilvestriandCopilot authored and GitHub committed 2026-02-11 15:15:24 +01:00
1 parent 443d04a4fc
commit d89f474df5
26 files changed
+575 -465

No files matched your search

+1 -1
View File
@@ -841,7 +841,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.14"
- name: Install coverage tool
run: pip install coverage
+27 -16
View File
@@ -6,7 +6,7 @@ ARG GID="9999"
# Builder for su-exec (replaces gosu, safer with smaller footprint)
# Pinned to v0.2 (commit 212b75144bbc) with SHA256 verification
# =============================================================================
FROM debian:bookworm-slim AS tool-builder
FROM debian:trixie-slim AS tool-builder
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@@ -28,7 +28,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
# =============================================================================
# Production base builder stage: builds runtime dependencies only
# =============================================================================
FROM python:3.11.14-slim-bookworm AS builder-prod-base
FROM python:3.14.3-slim-trixie AS builder-prod-base
ARG UID
ARG GID
@@ -38,7 +38,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
build-essential
build-essential \
libpq-dev
ENV UV_PYTHON_DOWNLOADS=0 \
UV_COMPILE_BYTECODE=1 \
@@ -158,22 +159,22 @@ COPY --chown=$UID:$GID enterprise/backend /baserow/enterprise/backend
RUN dos2unix /baserow/backend/docker/docker-entrypoint.sh \
&& chmod a+x /baserow/backend/docker/docker-entrypoint.sh
# Install the project with premium and enterprise workspaces, removing tests and unneeded files
# Install the project with premium and enterprise workspaces
RUN --mount=type=cache,target=$UV_CACHE_DIR,sharing=locked,uid=$UID,gid=$GID \
uv sync --frozen --no-dev \
&& find /baserow/venv -type f \( -name "*.c" -o -name "*.h" \) -not -path "*/autobahn/*" -delete \
# Strip test/doc directories from site-packages (keep django/drf tests - used at runtime)
# Keep botocore/docs and boto3/docs - they're imported at runtime
&& (find /baserow/ -type d \( -name "test" -o -name "tests" -o -name "email_compiler" \) \
&& (find /baserow/venv/lib -type d \( -name "test" -o -name "tests" \) \
-not -path "*/django/*" -not -path "*/rest_framework/*" -prune -exec rm -rf {} \; || true) \
&& (find /baserow/ -type d \( -name "doc" -o -name "docs" -o -name "example" -o -name "examples" \) \
&& (find /baserow/venv/lib -type d \( -name "doc" -o -name "docs" -o -name "example" -o -name "examples" \) \
-not -path "*/botocore/*" -not -path "*/boto3/*" -prune -exec rm -rf {} \; || true)
# =============================================================================
# CI Target - lightweight image for pytest and E2E tests
# =============================================================================
FROM python:3.11.14-slim-bookworm AS ci
FROM python:3.14.3-slim-trixie AS ci
ARG UID
ARG GID
@@ -221,7 +222,7 @@ ENTRYPOINT ["/usr/bin/tini", "--", "/bin/bash", "/baserow/backend/docker/docker-
# Only works mounting the source code as a bind mount. See docker-compose.dev.yml for usage.
# =============================================================================
FROM python:3.11.14-slim-bookworm AS dev
FROM python:3.14.3-slim-trixie AS dev
ARG UID="9999"
ARG GID="9999"
@@ -232,9 +233,13 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
apt-get install -y --no-install-recommends curl ca-certificates gnupg \
&& curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --batch --dearmor -o /usr/share/keyrings/pgdg.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/pgdg.gpg] https://apt.postgresql.org/pub/repos/apt trixie-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
python3.11-dev \
python3-dev \
ca-certificates \
postgresql-client-15 \
gettext \
@@ -316,7 +321,7 @@ CMD ["django-dev"]
# =============================================================================
# Production target
# =============================================================================
FROM python:3.11.14-slim-bookworm AS local
FROM python:3.14.3-slim-trixie AS local
ARG UID
ARG GID
@@ -334,12 +339,14 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
postgresql-client-${POSTGRES_VERSION} \
apt-get install -y --no-install-recommends curl ca-certificates gnupg \
&& curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --batch --dearmor -o /usr/share/keyrings/pgdg.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/pgdg.gpg] https://apt.postgresql.org/pub/repos/apt trixie-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
xmlsec1 \
gettext
gettext \
postgresql-client-${POSTGRES_VERSION}
RUN groupadd --system --gid $GID ${DOCKER_USER} && \
useradd --shell /bin/bash -l -u $UID -g $GID -o -c "" -d /baserow -m ${DOCKER_USER}
@@ -360,6 +367,10 @@ COPY --chown=$UID:$GID --from=builder-prod /baserow/premium /baserow/premium/
COPY --chown=$UID:$GID --from=builder-prod /baserow/enterprise /baserow/enterprise/
COPY --chown=$UID:$GID ./docs /baserow/docs/
# Remove application tests and dev-only directories
RUN rm -rf /baserow/backend/tests /baserow/premium/backend/tests \
/baserow/enterprise/backend/tests /baserow/backend/email_compiler
COPY --chown=$UID:$GID deploy/plugins/*.sh /baserow/plugins/
USER $UID:$GID
+2 -2
View File
@@ -64,7 +64,7 @@ alias dev := run-dev-server
alias serve := run-dev-server
# Variables
python_version := "3.11"
python_version := "3.14"
# Venv location: use UV_PROJECT_ENVIRONMENT if set (e.g., in Docker), otherwise default to project root
venv_dir := env("UV_PROJECT_ENVIRONMENT", justfile_directory() / "../.venv")
@@ -137,7 +137,7 @@ activate:
@echo ""
@echo " source {{ venv_dir }}/bin/activate"
# Create Python 3.11 virtual environment with uv
# Create Python virtual environment with uv
_create-venv:
#!/usr/bin/env bash
set -euo pipefail
+1 -1
View File
@@ -1,7 +1,7 @@
# mypy.ini
[mypy]
python_version = 3.11
python_version = 3.14
exclude = "[a-zA-Z_]+.migrations.|[a-zA-Z_]+.tests.|[a-zA-Z_]+.testing."
allow_redefinition = false
mypy_path=backend/src:premium/backend/src:enterprise/backend/src
+2 -2
View File
@@ -10,7 +10,7 @@ description = """Baserow is an open source no-code database tool and Airtable \
technical expertise. Build a table and define custom fields \
like text, number, file and many more."""
license = { file = "../LICENSE" }
requires-python = "==3.11.*"
requires-python = "==3.14.*"
dynamic = ["version"]
classifiers = []
@@ -81,7 +81,7 @@ dependencies = [
"django-cachalot==2.8.0",
"celery-singleton==0.3.1",
"posthog==7.4.2",
"prosemirror @ https://github.com/fellowapp/prosemirror-py/archive/refs/tags/v0.3.5.zip",
"prosemirror==0.5.2",
"rich==14.3.2",
"tzdata==2025.3",
"sentry-sdk==2.48.0",
+4 -4
View File
@@ -495,7 +495,7 @@ class AdvocateWrapperTests(unittest.TestCase):
local_wrapper.get("http://127.0.0.1:1/")
# Check that we got a connection exception instead of a validation one
# This might be either exception depending on the requests version
self.assertRegexpMatches(
self.assertRegex(
cm.exception.__class__.__name__,
r"\A(Connection|Protocol)Error",
)
@@ -518,7 +518,7 @@ class AdvocateWrapperTests(unittest.TestCase):
with self.assertRaises(Exception) as cm:
sess_instance.get("http://127.0.0.1:1/")
self.assertRegexpMatches(
self.assertRegex(
cm.exception.__class__.__name__,
r"\A(Connection|Protocol)Error",
)
@@ -534,7 +534,7 @@ class AdvocateWrapperTests(unittest.TestCase):
with self.assertRaises(Exception) as cm:
instance.get("http://127.0.0.1:1/")
self.assertRegexpMatches(
self.assertRegex(
cm.exception.__class__.__name__,
r"\A(Connection|Protocol)Error",
)
@@ -671,7 +671,7 @@ class AdvocateFuturesTest(unittest.TestCase):
sess.get("http://127.0.0.1:1/").result()
# Check that we got a connection exception instead of a validation one
# This might be either exception depending on the requests version
self.assertRegexpMatches(
self.assertRegex(
cm.exception.__class__.__name__,
r"\A(Connection|Protocol)Error",
)
@@ -1,7 +1,7 @@
# Generated from BaserowFormulaLexer.g4 by ANTLR 4.9
from antlr4 import *
from io import StringIO
from typing.io import TextIO
from typing import TextIO
import sys
+1 -1
View File
@@ -545,7 +545,7 @@ def remove_invalid_surrogate_characters(
) -> str:
"""
Removes illegal unicode characters from the provided content. If you for example
run something like `b"\ud83d".encode("utf-8")`, it will result in a
run something like `b"\\ud83d".encode("utf-8")`, it will result in a
UnicodeEncodeError. This function removed the illegal characters, it keeps the
valid emoji's.
@@ -1933,7 +1933,7 @@ def test_runtime_contains_execute(args, expected):
if expected is None:
with pytest.raises(TypeError) as e:
RuntimeContains().execute({}, parsed_args)
assert "is not iterable" in str(e)
assert "iterable" in str(e)
else:
result = RuntimeContains().execute({}, parsed_args)
assert result == expected
@@ -46,7 +46,7 @@ def test_notification_creation_on_creating_group_invitation(
response_json = response.json()
invitation_id = response_json["id"]
assert mocked_notification_created.called_once()
mocked_notification_created.assert_called_once()
args = mocked_notification_created.call_args
assert args == call(
sender=NotificationHandler,
@@ -119,7 +119,7 @@ def test_notification_creation_on_accepting_group_invitation(
assert response.status_code == HTTP_200_OK
assert mocked_notification_created.called_once()
mocked_notification_created.assert_called_once()
args = mocked_notification_created.call_args
assert args == call(
sender=NotificationHandler,
@@ -192,7 +192,7 @@ def test_notification_creation_on_rejecting_group_invitation(
assert response.status_code == HTTP_204_NO_CONTENT
assert mocked_notification_created.called_once()
mocked_notification_created.assert_called_once()
args = mocked_notification_created.call_args
assert args == call(
sender=NotificationHandler,
@@ -254,7 +254,7 @@ def test_baserow_version_upgrade_is_sent_as_broadcast_notification(
"1.19", "/blog/release-notes/1.19"
)
assert mocked_notification_created.called_once()
mocked_notification_created.assert_called_once()
args = mocked_notification_created.call_args
notification = NotificationHandler.get_notification_by(user_1, broadcast=True)
assert args == call(
@@ -251,7 +251,7 @@ def test_all_users_can_see_and_clear_broadcast_notifications(
assert NotificationRecipient.objects.count() == 0
@pytest.mark.django_db
@pytest.mark.django_db(transaction=True)
@patch("baserow.core.notifications.tasks.send_queued_notifications_to_users.delay")
def test_queued_notifications_are_not_visible_to_the_users(
mocked_send_queued_notifications_to_users,
@@ -290,7 +290,7 @@ def test_queued_notifications_are_not_visible_to_the_users(
assert user_notifications.count() == 0
assert other_user_notifications.count() == 0
assert mocked_send_queued_notifications_to_users.called_once()
mocked_send_queued_notifications_to_users.assert_called_once()
qs = NotificationRecipient.objects.filter(queued=True)
assert qs.filter(recipient=user).count() == 2
@@ -322,7 +322,7 @@ def test_daily_report_is_sent_up_to_max_limit_per_task_and_log_the_error(
assert len(weekly_summary_emails) == 1
assert weekly_summary_emails[0].to in [[user_3.email], [user_4.email]]
mock_logger_error.called_once_with(
mock_logger_error.assert_called_once_with(
"The maximum number of email of notifications was reached.\n"
"Daily sent: 1.\n"
"Daily remaining: 1.\n"
@@ -409,7 +409,7 @@ def test_daily_report_is_sent_up_to_max_limit_per_task_log_the_error_and_retry_a
assert len(weekly_summary_emails) == 1
assert weekly_summary_emails[0].to in [[user_3.email], [user_4.email]]
mock_logger_error.called_once_with(
mock_logger_error.assert_called_once_with(
"The maximum number of email of notifications was reached.\n"
"Daily sent: 1.\n"
"Daily remaining: 1.\n"
+488 -383
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -7,7 +7,7 @@ else
endif
# Get the Python interpreter path
PYTHON:=$(shell which python3.11 || which python3 || which python)
PYTHON:=$(shell which python3.14 || which python3 || which python)
# Get the directory of the current Makefile.
# If the Makefile is executed from another directory (e.g, using the '-C') flag
+12 -22
View File
@@ -3,15 +3,17 @@ ARG GID="9999"
ARG BACKEND_IMAGE=baserow/backend
ARG WEBFRONTEND_IMAGE=baserow/web-frontend
ARG CADDY_VERSION=2.10.2
# hadolint ignore=DL3006
FROM ${BACKEND_IMAGE} AS backend_image
# hadolint ignore=DL3006
FROM ${WEBFRONTEND_IMAGE} AS web_frontend_image
FROM caddy:${CADDY_VERSION} AS caddy_image
# =============================================================================
# Base - system dependencies (cached independently of source images)
# =============================================================================
FROM python:3.11.14-slim-bookworm AS base
FROM python:3.14.3-slim-trixie AS base
ARG UID
ARG GID
@@ -23,21 +25,18 @@ ENV DOCKER_USER=baserow_docker_user \
DATA_DIR=/baserow/data \
BASEROW_PLUGIN_DIR=/baserow/data/plugins
# Caddy checksums for v2.10.2
ENV CADDY_VERSION=2.10.2 \
CADDY_SHA256_AMD64=5c218bc34c9197369263da7e9317a83acdbd80ef45d94dca5eff76e727c67cdd \
CADDY_SHA256_ARM64=501e955fa634c5aab63247458c3ac655cfdd6cbf1e0436528f41248451c190ac
# Runtime dependencies
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --no-install-recommends -y \
curl gnupg2 ca-certificates && \
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --batch --dearmor -o /usr/share/keyrings/pgdg.gpg && \
echo "deb [signed-by=/usr/share/keyrings/pgdg.gpg] https://apt.postgresql.org/pub/repos/apt trixie-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --no-install-recommends -y \
supervisor \
curl \
gnupg2 \
ca-certificates \
psmisc \
gawk \
postgresql-client-"${POSTGRES_VERSION}" \
@@ -45,24 +44,18 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
gettext \
tini \
&& \
# Install Caddy with checksum verification
ARCH=$(dpkg --print-architecture) && \
curl -o caddy.tar.gz -sL "https://github.com/caddyserver/caddy/releases/download/v${CADDY_VERSION}/caddy_${CADDY_VERSION}_linux_${ARCH}.tar.gz" && \
if [ "$ARCH" = "amd64" ]; then \
echo "${CADDY_SHA256_AMD64} caddy.tar.gz" | sha256sum -c -; \
elif [ "$ARCH" = "arm64" ]; then \
echo "${CADDY_SHA256_ARM64} caddy.tar.gz" | sha256sum -c -; \
else echo "Unsupported architecture: $ARCH" && exit 1; fi && \
tar -xf caddy.tar.gz && mv caddy /usr/bin/ && rm caddy.tar.gz && \
# Setup user and group with fixed UID/GID for volume permission consistency
getent group "$GID" || groupadd --system --gid "$GID" "${DOCKER_USER}" && \
useradd --shell /bin/bash -l -u "$UID" -g "$GID" -o -c "" -d /baserow -m "${DOCKER_USER}" && \
chmod 755 /baserow && \
# Setup supervisor
ln -sf /dev/stdout /var/log/supervisor/supervisord.log && \
# Create data and plugin directories with correct ownership
mkdir -p "${DATA_DIR}" "${BASEROW_PLUGIN_DIR}" && \
chown -R "$UID:$GID" "${DATA_DIR}" "${BASEROW_PLUGIN_DIR}"
COPY --from=caddy_image /usr/bin/caddy /usr/bin/caddy
# Copy Node.js, npm, and yarn from web-frontend image (avoids insecure curl|bash from NodeSource)
COPY --from=web_frontend_image /usr/local/bin/node /usr/local/bin/node
COPY --from=web_frontend_image /usr/local/lib/node_modules /usr/local/lib/node_modules
@@ -122,13 +115,10 @@ ARG GID
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Add PostgreSQL repo (for pgvector) and install postgres + redis
# Install postgres + redis (PGDG repo already added in base stage)
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && \
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /usr/share/keyrings/postgresql-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/postgresql-keyring.gpg] http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/postgresql.list && \
apt-get update && \
apt-get install --no-install-recommends -y \
"postgresql-${POSTGRES_VERSION}" \
"postgresql-${POSTGRES_VERSION}-pgvector" \
+1 -1
View File
@@ -1,4 +1,4 @@
FROM debian:bookworm-slim
FROM debian:trixie-slim
#Don't ask questions during install
ENV DEBIAN_FRONTEND=noninteractive
+1 -1
View File
@@ -1,4 +1,4 @@
FROM debian:bookworm-slim
FROM debian:trixie-slim
#Don't ask questions during install
ENV DEBIAN_FRONTEND=noninteractive
+2 -2
View File
@@ -34,7 +34,7 @@ Install the following tools:
select `module settings`:
1. Make sure the `backend` module SDK is set to the python virtualenv you just
made (`.venv/bin/python`).
1. There will most likely be an existing `Python 3.11 (baserow)` virtualenv SDK
1. There will most likely be an existing `Python 3.14 (baserow)` virtualenv SDK
which is red. Delete this first.
1. Then you will most likely need to add it as a new SDK by navigating to
1. F4 → SDK
@@ -42,7 +42,7 @@ Install the following tools:
1. Add New Python SDK
1. Existing Interpreter
1. Find and select your virtualenvs `bin/python` executable (`.venv/bin/python`)
1. call this new SDK `Python 3.11 (baserow)` so you don't make an accidental
1. call this new SDK `Python 3.14 (baserow)` so you don't make an accidental
change to the `backend.iml` file:
1. Install and get a postgresql database running locally:
1. The easiest way is to use Docker:
@@ -18,13 +18,13 @@ This guide covers running Baserow's backend and frontend natively on your machin
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/.local/bin
```
3. **Python 3.11** - For the backend
3. **Python 3.14** - For the backend
```bash
# macOS
brew install python@3.11
brew install python@3.14
# Linux (Ubuntu/Debian)
sudo apt install python3.11 python3.11-dev
sudo apt install python3.14 python3.14-dev
```
4. **uv** - Fast Python package manager
```bash
+1 -1
View File
@@ -16,7 +16,7 @@ Software versions are divided into the following groups:
| Firefox | Latest | Latest | Latest |
| Chrome | Latest | Latest | Latest |
| Edge | Latest | Latest | Latest |
| Python | >=3.11.0 | 3.11.2 | latest 3.11.x |
| Python | >=3.14.0 | 3.14.3 | latest 3.14.x |
| Node.js | >= 24.0.0 | 24.0.0 | >= 24.0.0 |
| Docker | >= 19.03 | Latest | Latest |
| docker-compose | >= 1.19.0 | Latest | Latest |
+3 -3
View File
@@ -1,4 +1,4 @@
FROM python:3.11.14-slim-bookworm AS builder
FROM python:3.14.3-slim-trixie AS builder
RUN apt-get update && apt-get install -y --no-install-recommends \
git && rm -rf /var/lib/apt/lists/*
@@ -12,12 +12,12 @@ RUN pip install --no-cache-dir \
python _download_model.py && \
rm _download_model.py
FROM python:3.11-slim-bookworm
FROM python:3.14.3-slim-trixie
COPY --from=builder /model /model
RUN pip install --no-cache-dir \
onnxruntime==1.20.1 \
onnxruntime==1.24.1 \
transformers==4.53.0 \
starlette==0.48.0 \
uvicorn==0.37.0 && \
+1 -1
View File
@@ -174,7 +174,7 @@ The embeddings enable the assistant to understand the semantic meaning of user q
## Dependencies
- Python 3.13
- Python 3.14
- optimum[onnxruntime] 1.27.0
- transformers 4.53.0
- starlette 0.48.0
+1 -1
View File
@@ -11,7 +11,7 @@ description = """Baserow is an open source no-code database tool and Airtable \
like text, number, file and many more."""
# mixed license
license = { file = "../LICENSE" }
requires-python = "==3.11.*"
requires-python = "==3.14.*"
version = "2.0.6"
classifiers = []
+1 -1
View File
@@ -11,7 +11,7 @@ description = """Baserow is an open source no-code database tool and Airtable \
like text, number, file and many more."""
# mixed license
license = { file = "../LICENSE" }
requires-python = "==3.11.*"
requires-python = "==3.14.*"
version = "2.0.6"
classifiers = []
@@ -56,7 +56,7 @@ def test_notification_creation_on_creating_row_comment_mention(
assert response.status_code == HTTP_200_OK
comment_id = response.json()["id"]
assert mocked_notification_created.called_once()
mocked_notification_created.assert_called_once()
args = mocked_notification_created.call_args
assert args == call(
sender=NotificationHandler,
@@ -129,6 +129,7 @@ def test_notify_only_new_mentions_when_updating_a_comment(
comment = RowCommentHandler.create_comment(
user_1, table.id, rows[0].id, message
)
mocked_notification_created.reset_mock()
new_message = premium_data_fixture.create_comment_message_with_mentions(
[user_1, user_2]
)
@@ -147,7 +148,7 @@ def test_notify_only_new_mentions_when_updating_a_comment(
assert response.status_code == HTTP_200_OK
comment_id = response.json()["id"]
assert mocked_notification_created.called_once()
mocked_notification_created.assert_called_once()
args = mocked_notification_created.call_args
assert args == call(
sender=NotificationHandler,
+9 -6
View File
@@ -6,7 +6,7 @@ ARG GID="9999"
# Builder for su-exec (replaces gosu, smaller footprint)
# Pinned to v0.2 (commit 212b75144bbc) with SHA256 verification
# =============================================================================
FROM debian:bookworm-slim AS tool-builder
FROM debian:trixie-slim AS tool-builder
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@@ -27,7 +27,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
# =============================================================================
# CI builder stage
# =============================================================================
FROM node:24.13-bookworm-slim AS builder-ci
FROM node:24.13.0-trixie-slim AS builder-ci
ARG UID
ARG GID
@@ -51,7 +51,7 @@ RUN --mount=type=cache,target=$YARN_CACHE_FOLDER,uid=$UID,gid=$GID,sharing=locke
# =============================================================================
# Production builder stage
# =============================================================================
FROM node:24.13-bookworm-slim AS builder-prod
FROM node:24.13.0-trixie-slim AS builder-prod
ARG UID
ARG GID
@@ -99,7 +99,7 @@ FROM busybox:musl AS busybox-helper
# =============================================================================
# CI target - used in CI pipelines
# =============================================================================
FROM node:24.13-bookworm-slim AS ci
FROM node:24.13.0-trixie-slim AS ci
ARG UID
ARG GID
@@ -150,7 +150,7 @@ CMD ["nuxt-prod"]
# =============================================================================
# Development target - used for local development with live reload
# =============================================================================
FROM node:24.13-bookworm-slim AS dev
FROM node:24.13.0-trixie-slim AS dev
ARG UID
ARG GID
@@ -238,7 +238,7 @@ CMD ["nuxt-dev"]
# =============================================================================
# Production target - minimal image with only runtime requirements
# =============================================================================
FROM node:24.13-bookworm-slim AS local
FROM node:24.13.0-trixie-slim AS local
ARG UID
ARG GID
@@ -254,6 +254,9 @@ COPY --from=tool-builder /usr/local/bin/su-exec /usr/local/bin/su-exec
COPY --from=tool-builder /usr/bin/tini /usr/bin/tini
COPY --from=busybox-helper /bin/wget /usr/local/bin/wget
# Update npm to patch CVEs in its bundled deps (glob, tar, @isaacs/brace-expansion)
RUN npm install -g npm@latest
RUN groupadd --system --gid $GID ${DOCKER_USER} && \
useradd --shell /bin/bash -l -u $UID -g $GID -o -c "" -d /baserow -m ${DOCKER_USER}