Skip to content

Commit 8b578d1

Browse files
committed
chore: refactor Dockerfile for improved security
- Remove `.hadolint.yaml` from the project - Add open container labels to the Dockerfile Signed-off-by: Bo-Yi.Wu <[email protected]>
1 parent ea5c04f commit 8b578d1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.hadolint.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ LABEL maintainer="Bo-Yi Wu <[email protected]>" \
88
org.label-schema.vendor="Bo-Yi Wu" \
99
org.label-schema.schema-version="1.0"
1010

11-
RUN apk add --no-cache ca-certificates && \
11+
LABEL org.opencontainers.image.source=https://github.com/appleboy/drone-scp
12+
LABEL org.opencontainers.image.description="Copy files and artifacts via SSH"
13+
LABEL org.opencontainers.image.licenses=MIT
14+
15+
RUN apk add --no-cache ca-certificates=20220614-r4 && \
1216
rm -rf /var/cache/apk/*
1317

1418
COPY release/${TARGETOS}/${TARGETARCH}/drone-scp /bin/

0 commit comments

Comments
 (0)