diff --git a/changelog.d/9612.docker b/changelog.d/9612.docker new file mode 100644 index 0000000000000000000000000000000000000000..d95c503c8b1a85e7ca3248a360cb3ef2b7af0724 --- /dev/null +++ b/changelog.d/9612.docker @@ -0,0 +1 @@ +Include [opencontainers labels](https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys) in the Docker image. diff --git a/docker/Dockerfile b/docker/Dockerfile index def4501541fe0a8353c68cb5b9fcecdf9924082e..7cd4dd7d1e1214989c27e87d3fe342458836ddcc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,6 +18,11 @@ ARG PYTHON_VERSION=3.8 ### FROM docker.io/python:${PYTHON_VERSION}-slim as builder +LABEL org.opencontainers.image.url='https://matrix.org/docs/projects/server/synapse' +LABEL org.opencontainers.image.documentation='https://github.com/matrix-org/synapse/blob/master/docker/README.md' +LABEL org.opencontainers.image.source='https://github.com/matrix-org/synapse.git' +LABEL org.opencontainers.image.licenses='Apache-2.0' + # install the OS build deps RUN apt-get update && apt-get install -y \ build-essential \