chore: refine Docker setup and configuration

- Add a new `.hadolint.yaml` configuration file with specific rule ignores
- Update the Dockerfile to install `ca-certificates` without a fixed version

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2024-04-29 15:42:37 +08:00
parent 59b6fbbaf2
commit 17f7e18d78
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
ignored:
- DL3018
- DL3008
+1 -1
View File
@@ -12,7 +12,7 @@ LABEL org.opencontainers.image.source=https://github.com/appleboy/drone-discord
LABEL org.opencontainers.image.description="Drone Discord" LABEL org.opencontainers.image.description="Drone Discord"
LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.licenses=MIT
RUN apk add --no-cache ca-certificates=20230506-r0 && \ RUN apk add --no-cache ca-certificates && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
COPY release/${TARGETOS}/${TARGETARCH}/drone-discord /bin/ COPY release/${TARGETOS}/${TARGETARCH}/drone-discord /bin/