Update Dockerfiles to ignore linting for cert installation
This commit is contained in:
parent
c6855a1b73
commit
13a2a599dc
|
@ -17,5 +17,4 @@ repos:
|
||||||
- repo: https://github.com/IamTheFij/docker-pre-commit
|
- repo: https://github.com/IamTheFij/docker-pre-commit
|
||||||
rev: v2.0.0
|
rev: v2.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: docker-compose-check
|
|
||||||
- id: hadolint-system
|
- id: hadolint-system
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
# hadolint ignore=DL3007
|
||||||
FROM alpine:latest as certs
|
FROM alpine:latest as certs
|
||||||
|
# hadolint ignore=DL3018
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
|
@ -17,7 +17,9 @@ ARG VERSION=dev
|
||||||
ENV CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH}
|
ENV CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH}
|
||||||
RUN go build -ldflags "-X main.version=${VERSION}" -a -installsuffix nocgo -o tag-checker .
|
RUN go build -ldflags "-X main.version=${VERSION}" -a -installsuffix nocgo -o tag-checker .
|
||||||
|
|
||||||
|
# hadolint ignore=DL3007
|
||||||
FROM alpine:latest as certs
|
FROM alpine:latest as certs
|
||||||
|
# hadolint ignore=DL3018
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
Loading…
Reference in New Issue