From b0ddeb94132c7458431af22e1272ee180e19e994 Mon Sep 17 00:00:00 2001 From: "Bo-Yi.Wu" Date: Tue, 4 Apr 2023 15:38:34 +0800 Subject: [PATCH] chore: update container security measures - Add Open Container Initiative labels for image source, description, and licenses - Update `apk` command to include specific version of `ca-certificates` Signed-off-by: Bo-Yi.Wu --- docker/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ab1fd34..2b9a5e6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -8,7 +8,11 @@ LABEL maintainer="Bo-Yi Wu " \ org.label-schema.vendor="Bo-Yi Wu" \ org.label-schema.schema-version="1.0" -RUN apk add --no-cache ca-certificates && \ +LABEL org.opencontainers.image.source=https://github.com/appleboy/drone-ssh +LABEL org.opencontainers.image.description="Execute commands on a remote host through SSH" +LABEL org.opencontainers.image.licenses=MIT + +RUN apk add --no-cache ca-certificates=20220614-r4 && \ rm -rf /var/cache/apk/* COPY release/${TARGETOS}/${TARGETARCH}/drone-ssh /bin/