summaryrefslogtreecommitdiffhomepage
path: root/pkg/docker/template.Dockerfile
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-04-06 20:43:22 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-04-06 20:43:22 -0700
commitd56ff075516a6e7249ec589d0279610b2dbc9164 (patch)
treef4cc4fa61d9e6c4a1325b6e1c4176f9aff365ceb /pkg/docker/template.Dockerfile
parenta02b12d5a4966f328fa5e7af37f7b0592bccda16 (diff)
downloadunit-d56ff075516a6e7249ec589d0279610b2dbc9164.tar.gz
unit-d56ff075516a6e7249ec589d0279610b2dbc9164.tar.bz2
Docker: added OCI image-spec labels.
Diffstat (limited to '')
-rw-r--r--pkg/docker/template.Dockerfile8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/docker/template.Dockerfile b/pkg/docker/template.Dockerfile
index e3627ec0..99318507 100644
--- a/pkg/docker/template.Dockerfile
+++ b/pkg/docker/template.Dockerfile
@@ -1,6 +1,12 @@
FROM @@CONTAINER@@
-LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
+LABEL org.opencontainers.image.title="Unit"
+LABEL org.opencontainers.image.description="Official build of Unit for Docker."
+LABEL org.opencontainers.image.url="https://unit.nginx.org"
+LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
+LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
+LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <docker-maint@nginx.com>"
+LABEL org.opencontainers.image.version="%%VERSION%%"
RUN set -ex \
&& savedAptMark="$(apt-mark showmanual)" \