diff --git a/Dockerfile b/Dockerfile index d9e3f64..2e2c8b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,16 @@ RUN set -ex \ FROM alpine:latest -LABEL maintainer "Knut Ahlers " +ARG BUILD_DATE +ARG APP_VERSION + +LABEL org.opencontainers.image.authors='Knut Ahlers ' \ + org.opencontainers.image.created=$BUILD_DATE \ + org.opencontainers.image.version=$APP_VERSION \ + org.opencontainers.image.url='https://hub.docker.com/r/luzifer/ots/' \ + org.opencontainers.image.documentation='https://github.com/Luzifer/ots/wiki' \ + org.opencontainers.image.source='https://github.com/Luzifer/ots' \ + org.opencontainers.image.licenses='Apache-2.0' RUN set -ex \ && apk --no-cache add \ diff --git a/Dockerfile.minimal b/Dockerfile.minimal index e4206a4..50032a3 100644 --- a/Dockerfile.minimal +++ b/Dockerfile.minimal @@ -25,7 +25,16 @@ RUN set -ex \ FROM scratch -LABEL maintainer "Knut Ahlers " +ARG BUILD_DATE +ARG APP_VERSION + +LABEL org.opencontainers.image.authors='Knut Ahlers ' \ + org.opencontainers.image.created=$BUILD_DATE \ + org.opencontainers.image.version $APP_VERSION \ + org.opencontainers.image.url='https://hub.docker.com/r/luzifer/ots/' \ + org.opencontainers.image.documentation='https://github.com/Luzifer/ots/wiki' \ + org.opencontainers.image.source='https://github.com/Luzifer/ots' \ + org.opencontainers.image.licenses='Apache-2.0' COPY --from=builder /go/bin/ots /usr/local/bin/ots