summaryrefslogtreecommitdiff
path: root/client/Dockerfile
diff options
context:
space:
mode:
authorShyam Sunder <sgsunder1@gmail.com>2019-10-04 18:58:05 -0400
committerShyam Sunder <sgsunder1@gmail.com>2019-10-04 19:52:57 -0400
commit9c044003693a945e8508cb7a5a9829fdb802e2c8 (patch)
tree894fab6da7a8f8c52caba034048bbcf17fd378f2 /client/Dockerfile
parent91f5a4245941ee460580f92bd73fe5e81b6bcfac (diff)
docker: added OCI-compatible image labels
See https://github.com/opencontainers/image-spec/blob/master/annotations.md
Diffstat (limited to 'client/Dockerfile')
-rw-r--r--client/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/Dockerfile b/client/Dockerfile
index 7d07bd9..5f02753 100644
--- a/client/Dockerfile
+++ b/client/Dockerfile
@@ -29,3 +29,16 @@ COPY --from=approot / /
CMD ["/docker-start.sh"]
VOLUME ["/data"]
+
+ARG DOCKER_REPO
+ARG BUILD_DATE
+ARG SOURCE_COMMIT
+LABEL \
+ maintainer="" \
+ org.opencontainers.image.title="${DOCKER_REPO}" \
+ org.opencontainers.image.url="https://github.com/rr-/szurubooru" \
+ org.opencontainers.image.documentation="https://github.com/rr-/szurubooru/blob/${SOURCE_COMMIT}/doc/INSTALL.md" \
+ org.opencontainers.image.created="${BUILD_DATE}" \
+ org.opencontainers.image.source="https://github.com/rr-/szurubooru" \
+ org.opencontainers.image.revision="${SOURCE_COMMIT}" \
+ org.opencontainers.image.licenses="GPL-3.0"