Skip to content

Commit

Permalink
chore(docker): add OCI annotations as labels to the Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgirro committed Sep 30, 2024
1 parent 300c9bc commit 0d0c365
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion build/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ COPY dist/kubectl /app/
COPY static /app/static
COPY config $HOME/.docker/

LABEL io.portainer.agent true
LABEL io.portainer.agent true \
org.opencontainers.image.title="Portainer Agent" \
org.opencontainers.image.description="The Portainer agent" \
org.opencontainers.image.source="https://github.com/portainer/agent" \
org.opencontainers.image.vendor="Portainer.io"

ENTRYPOINT ["./agent"]
6 changes: 5 additions & 1 deletion build/linux/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ COPY dist/kubectl /app/
COPY static /app/static
COPY config $HOME/.docker/

LABEL io.portainer.agent true
LABEL io.portainer.agent true \
org.opencontainers.image.title="Portainer Agent" \
org.opencontainers.image.description="The Portainer agent" \
org.opencontainers.image.source="https://github.com/portainer/agent" \
org.opencontainers.image.vendor="Portainer.io"

ENTRYPOINT ["./agent"]

0 comments on commit 0d0c365

Please sign in to comment.