Update Dockerfiles to ignore linting for cert installation
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing

This commit is contained in:
IamTheFij 2020-12-01 18:39:29 -08:00
parent c6855a1b73
commit 13a2a599dc
3 changed files with 4 additions and 1 deletions

View File

@ -17,5 +17,4 @@ repos:
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v2.0.0
hooks:
- id: docker-compose-check
- id: hadolint-system

View File

@ -1,4 +1,6 @@
# hadolint ignore=DL3007
FROM alpine:latest as certs
# hadolint ignore=DL3018
RUN apk --no-cache add ca-certificates
FROM scratch

View File

@ -17,7 +17,9 @@ ARG VERSION=dev
ENV CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH}
RUN go build -ldflags "-X main.version=${VERSION}" -a -installsuffix nocgo -o tag-checker .
# hadolint ignore=DL3007
FROM alpine:latest as certs
# hadolint ignore=DL3018
RUN apk --no-cache add ca-certificates
FROM scratch