Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Last active April 14, 2024 16:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pythoninthegrass/363b77be45ee378de83f64742d5644f9 to your computer and use it in GitHub Desktop.
Save pythoninthegrass/363b77be45ee378de83f64742d5644f9 to your computer and use it in GitHub Desktop.
Hadolint config stored in $HOME
failure-threshold: info # error|warning|info|style|ignore|none
ignored:
- DL3006 # explicit tag
- DL3008 # pin versions in apt
- DL3018 # pin versions in apk
- DL3026 # allowed registry
trustedRegistries:
- docker.io
- "*.gcr.io"
- localhost:32000
@pythoninthegrass
Copy link
Author

localhost:32000 is microk8s' local container registry

@pythoninthegrass
Copy link
Author

Can also put at the top of a Dockerfile

# syntax=docker/dockerfile:1.6
# hadolint global ignore=DL3006,DL3026

FROM golang:1.22.2-alpine AS builder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment