mirror of
https://github.com/containrrr/watchtower.git
synced 2026-01-19 07:16:10 +01:00
Add OCI image labels
This commit is contained in:
parent
53b5ab26a2
commit
f82357b272
3 changed files with 39 additions and 7 deletions
|
|
@ -1,4 +1,6 @@
|
|||
FROM --platform=$BUILDPLATFORM alpine:3.21.2 as alpine
|
||||
ARG BASE_IMAGE=alpine:3.21.2
|
||||
|
||||
FROM --platform=$BUILDPLATFORM $BASE_IMAGE as alpine
|
||||
|
||||
RUN apk add --no-cache \
|
||||
ca-certificates \
|
||||
|
|
@ -6,6 +8,13 @@ RUN apk add --no-cache \
|
|||
|
||||
FROM scratch
|
||||
LABEL "com.centurylinklabs.watchtower"="true"
|
||||
LABEL "org.opencontainers.image.url"="https://nicholas-fedor.github.io/watchtower/" \
|
||||
"org.opencontainers.image.documentation"="https://nicholas-fedor.github.io/watchtower/" \
|
||||
"org.opencontainers.image.source"="https://github.com/nicholas-fedor/watchtower" \
|
||||
"org.opencontainers.image.licenses"="Apache-2.0" \
|
||||
"org.opencontainers.image.title"="Watchtower" \
|
||||
"org.opencontainers.image.description"="A process for automating Docker container base image updates." \
|
||||
"org.opencontainers.image.base.name"="$BASE_IMAGE"
|
||||
|
||||
COPY --from=alpine \
|
||||
/etc/ssl/certs/ca-certificates.crt \
|
||||
|
|
|
|||
|
|
@ -36,6 +36,13 @@ RUN \
|
|||
FROM scratch
|
||||
|
||||
LABEL "com.centurylinklabs.watchtower"="true"
|
||||
LABEL "org.opencontainers.image.url"="https://nicholas-fedor.github.io/watchtower/" \
|
||||
"org.opencontainers.image.documentation"="https://nicholas-fedor.github.io/watchtower/" \
|
||||
"org.opencontainers.image.source"="https://github.com/nicholas-fedor/watchtower" \
|
||||
"org.opencontainers.image.licenses"="Apache-2.0" \
|
||||
"org.opencontainers.image.title"="Watchtower" \
|
||||
"org.opencontainers.image.description"="A process for automating Docker container base image updates." \
|
||||
"org.opencontainers.image.base.name"="alpine"
|
||||
|
||||
# copy files from other container
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue