From ac9fb0355da08fa0e506d2682f5377bd91373e38 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Tue, 24 Nov 2026 23:02:16 -0700 Subject: [PATCH 1/2] image: OCI labels (title, description, licence, source, version, revision) The published image had no labels saying what it is. Version and commit are the build args both release builds already pass. --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6b047af..7a007a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,16 @@ ARG BASE_PATH="" # The commit being built, for /.well-known/source; passed like the version, # for the same reason. Left empty, there is no source document. ARG INBUXA_REVISION="" +# What the image says it is, for registries and anyone inspecting it. +LABEL org.opencontainers.image.title="inbuxa Webmail" \ + org.opencontainers.image.description="Webmail for the inbuxa mail server: mail, calendars, contacts and files for everyone with an account, on a phone as readily as a desktop. Built on ihasmail." \ + org.opencontainers.image.url="https://inbuxa.org/" \ + org.opencontainers.image.documentation="https://docs.inbuxa.org/" \ + org.opencontainers.image.source="https://git.coffeylabs.org/inbuxa/inbuxa-webmail" \ + org.opencontainers.image.licenses="AGPL-3.0-or-later" \ + org.opencontainers.image.vendor="Coffey Labs LLC" \ + org.opencontainers.image.version="$IHASMAIL_VERSION" \ + org.opencontainers.image.revision="$INBUXA_REVISION" ENV NODE_ENV=production \ HOST=:: \ PORT=8080 \ -- 2.54.0 From cf974cd224d50f4fd16c854d449154fcc6bf9243 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Tue, 24 Nov 2026 23:05:12 -0700 Subject: [PATCH 2/2] image: labels last in the final stage, so they never cost a cached layer --- Dockerfile | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a007a6..96cdfb4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,16 +36,6 @@ ARG BASE_PATH="" # The commit being built, for /.well-known/source; passed like the version, # for the same reason. Left empty, there is no source document. ARG INBUXA_REVISION="" -# What the image says it is, for registries and anyone inspecting it. -LABEL org.opencontainers.image.title="inbuxa Webmail" \ - org.opencontainers.image.description="Webmail for the inbuxa mail server: mail, calendars, contacts and files for everyone with an account, on a phone as readily as a desktop. Built on ihasmail." \ - org.opencontainers.image.url="https://inbuxa.org/" \ - org.opencontainers.image.documentation="https://docs.inbuxa.org/" \ - org.opencontainers.image.source="https://git.coffeylabs.org/inbuxa/inbuxa-webmail" \ - org.opencontainers.image.licenses="AGPL-3.0-or-later" \ - org.opencontainers.image.vendor="Coffey Labs LLC" \ - org.opencontainers.image.version="$IHASMAIL_VERSION" \ - org.opencontainers.image.revision="$INBUXA_REVISION" ENV NODE_ENV=production \ HOST=:: \ PORT=8080 \ @@ -99,3 +89,16 @@ EXPOSE 8080 # restart it forever. HEALTHCHECK --interval=30s --timeout=5s CMD BP="${BASE_PATH%/}"; case "$BP" in ""|/*) ;; *) BP="/$BP";; esac; wget -qO- "http://127.0.0.1:8080$BP/api/health" || exit 1 CMD ["node", "server/dist/index.js"] + +# Last in the image, after everything that does work: a value that changes +# every build (the version, the commit) then never costs a cached layer. +# What the image says it is, for registries and anyone inspecting it. +LABEL org.opencontainers.image.title="inbuxa Webmail" \ + org.opencontainers.image.description="Webmail for the inbuxa mail server: mail, calendars, contacts and files for everyone with an account, on a phone as readily as a desktop. Built on ihasmail." \ + org.opencontainers.image.url="https://inbuxa.org/" \ + org.opencontainers.image.documentation="https://docs.inbuxa.org/" \ + org.opencontainers.image.source="https://git.coffeylabs.org/inbuxa/inbuxa-webmail" \ + org.opencontainers.image.licenses="AGPL-3.0-or-later" \ + org.opencontainers.image.vendor="Coffey Labs LLC" \ + org.opencontainers.image.version="$IHASMAIL_VERSION" \ + org.opencontainers.image.revision="$INBUXA_REVISION" -- 2.54.0