mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00

- 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 <appleboy.tw@gmail.com>
21 lines
601 B
Docker
21 lines
601 B
Docker
FROM alpine:3.17
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
|
|
org.label-schema.name="SSH Plugin" \
|
|
org.label-schema.vendor="Bo-Yi Wu" \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
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/
|
|
|
|
ENTRYPOINT ["/bin/drone-ssh"]
|