From 13a2a599dcbf1c78f082738955ae3b13967f57cf Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 1 Dec 2020 18:39:29 -0800 Subject: [PATCH] Update Dockerfiles to ignore linting for cert installation --- .pre-commit-config.yaml | 1 - Dockerfile | 2 ++ Dockerfile.multi-stage | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df99911..7b0fea7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/Dockerfile b/Dockerfile index 88c228c..6bafafe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ +# hadolint ignore=DL3007 FROM alpine:latest as certs +# hadolint ignore=DL3018 RUN apk --no-cache add ca-certificates FROM scratch diff --git a/Dockerfile.multi-stage b/Dockerfile.multi-stage index 0ea503b..96f7490 100644 --- a/Dockerfile.multi-stage +++ b/Dockerfile.multi-stage @@ -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