feat: add opencontainers labels (#157)

This commit is contained in:
William Boman 2023-03-21 10:50:37 +01:00 committed by GitHub
parent 7d5a21448b
commit dc8d2bbb57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View file

@ -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[@]}" \

View file

@ -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} && \

View file

@ -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/)**