summary refs log tree commit diff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorJohannes Wienke <languitar@semipol.de>2021-03-22 16:31:00 +0100
committerGitHub <noreply@github.com>2021-03-22 15:31:00 +0000
commit4612302399dc95ba781af6ebc9eedc768f7f0a7d (patch)
treec460f97f35bb26335eae3ea903be4ed60f62e0be /docker/Dockerfile
parentFixed code misc. quality issues (#9649) (diff)
downloadsynapse-4612302399dc95ba781af6ebc9eedc768f7f0a7d.tar.xz
Include opencontainers labels in Docker image (#9612)
Cf. https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys

Signed-off-by: Johannes Wienke <languitar@semipol.de>
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index def4501541..7cd4dd7d1e 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 \