dockerfiles/gitleaks/Dockerfile

9 lines
439 B
Docker

# Kind of sad that I need to make this trivial image. But the gitleaks docker
# image by default uses a user named `gitleaks` with uid 1000, and it doesn't
# work correctly unless the gitleaks is run with the user that owns the files
# in the repo. And in my CI (woodpecker) the files in the repo are owned by
# root and I can't configure the user running the container in its yaml config.
# So yeah...
FROM zricethezav/gitleaks
USER root