mirror of
https://github.com/Luzifer/ots.git
synced 2025-04-19 06:55:51 -04:00
chore: Using OCI default labels
see https://github.com/opencontainers/image-spec/blob/main/annotations.md
This commit is contained in:
parent
21f295cfc1
commit
565c7b5bc0
11
Dockerfile
11
Dockerfile
@ -25,7 +25,16 @@ RUN set -ex \
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
|
||||
ARG BUILD_DATE
|
||||
ARG APP_VERSION
|
||||
|
||||
LABEL org.opencontainers.image.authors='Knut Ahlers <knut@ahlers.me>' \
|
||||
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 \
|
||||
|
@ -25,7 +25,16 @@ RUN set -ex \
|
||||
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
|
||||
ARG BUILD_DATE
|
||||
ARG APP_VERSION
|
||||
|
||||
LABEL org.opencontainers.image.authors='Knut Ahlers <knut@ahlers.me>' \
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user