diff --git a/.github/workflows/docker-image-push.yml b/.github/workflows/docker-image-push.yml index 47e7b57..25e0d0a 100644 --- a/.github/workflows/docker-image-push.yml +++ b/.github/workflows/docker-image-push.yml @@ -59,7 +59,7 @@ jobs: env: PLATFORMS: linux/amd64,linux/arm64/v8,linux/arm/v7 run: | - set -euo pipefail + set -euxo pipefail VERSION="$(git describe --exact-match --tags HEAD)" TAG="$VERSION" @@ -82,6 +82,7 @@ jobs: fi docker buildx build \ + --label org.opencontainers.artifact.created="$(date --rfc-3339=seconds --utc)" \ --push \ --platform "${PLATFORMS}" \ "${TAGS[@]}" \ diff --git a/Dockerfile b/Dockerfile index dfc02c6..6fe0aee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,15 @@ FROM node:lts-alpine +ARG THELOUNGE_VERSION=4.4.0-pre.2 + +LABEL org.opencontainers.image.title "Official The Lounge image" +LABEL org.opencontainers.image.description "Official Docker image for The Lounge, a modern web IRC client designed for self-hosting." +LABEL org.opencontainers.image.authors "The Lounge #thelounge @irc.libera.chat" +LABEL org.opencontainers.image.url "https://github.com/thelounge/thelounge-docker" +LABEL org.opencontainers.image.source "https://github.com/thelounge/thelounge-docker" +LABEL org.opencontainers.image.version "${THELOUNGE_VERSION}" +LABEL org.opencontainers.image.licenses "MIT" + ENV NODE_ENV production ENV THELOUNGE_HOME "/var/opt/thelounge" @@ -15,7 +25,6 @@ CMD ["thelounge", "start"] COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # Install thelounge. -ARG THELOUNGE_VERSION=4.4.0-pre.2 RUN apk --update --no-cache --virtual build-deps add python3 build-base git && \ ln -sf python3 /usr/bin/python && \ yarn --non-interactive --frozen-lockfile global add thelounge@${THELOUNGE_VERSION} && \ diff --git a/README.md b/README.md index febfa2b..5ecd030 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![The Lounge](https://raw.githubusercontent.com/thelounge/thelounge.github.io/master/assets/logos/logo/TL_Grey%26Yellow_Vertical_logotype_Transparent_Bg/TL_Grey%26Yellow_Vertical_logotype_Transparent_Bg.png) -#### Docker container for The Lounge, modern web IRC client designed for self-hosting +#### Docker image for The Lounge, a modern web IRC client designed for self-hosting **[Website](https://thelounge.chat/) • [Docs](https://thelounge.chat/docs) • [Demo](https://demo.thelounge.chat/)**