{"id":20153023,"url":"https://github.com/bvwells/hadolint-example","last_synced_at":"2026-03-06T12:02:39.067Z","repository":{"id":125291593,"uuid":"467129698","full_name":"bvwells/hadolint-example","owner":"bvwells","description":"Hadolint Dockerfile Linting Example","archived":false,"fork":false,"pushed_at":"2022-03-17T16:55:56.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T04:07:22.554Z","etag":null,"topics":["container","hadolint","linting","security"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bvwells.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-03-07T14:32:18.000Z","updated_at":"2022-03-15T19:00:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"45c29aa6-6c97-4db9-8c49-9c3877f67088","html_url":"https://github.com/bvwells/hadolint-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bvwells/hadolint-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvwells%2Fhadolint-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvwells%2Fhadolint-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvwells%2Fhadolint-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvwells%2Fhadolint-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bvwells","download_url":"https://codeload.github.com/bvwells/hadolint-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvwells%2Fhadolint-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30175895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T11:48:51.886Z","status":"ssl_error","status_checked_at":"2026-03-06T11:48:51.460Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["container","hadolint","linting","security"],"created_at":"2024-11-13T23:16:31.429Z","updated_at":"2026-03-06T12:02:39.057Z","avatar_url":"https://github.com/bvwells.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hadolint Example\n\nThis repo shows an example of linting a Docker file with [Hadolint](https://github.com/hadolint/hadolint).\n\nThe repo contains two Dockerfiles, the original Dockerfile which Hadolint identifies issues with. \nRun the command:\n\n```bash\ndocker run --rm -i hadolint/hadolint \u003c original/Dockerfile\n```\n\nThis command produces the output:\n\n```bash\n-:6 DL3018 warning: Pin versions in apk add. Instead of `apk add \u003cpackage\u003e` use `apk add \u003cpackage\u003e=\u003cversion\u003e`\n-:6 DL3019 info: Use the `--no-cache` switch to avoid the need to use `--update` and remove `/var/cache/apk/*` when done installing packages\n-:11 DL3047 info: Avoid use of wget without progress bar. Use `wget --progress=dot:giga \u003curl\u003e`.Or consider using `-q` or `-nv` (shorthands for `--quiet` or `--no-verbose`).\n```\n\nSee [rules](https://github.com/hadolint/hadolint#rules) for more information on\nhow to fix these issues.\n\nNote: when pinning alpine package versions it is useful to refer to the official \nalpine package management site [here](https://pkgs.alpinelinux.org/packages). Also, \nit is possible to idenitfy the versions of packages by building the Docker image \nwithout pinning the versions and then run `apk info *package*` within the running\ncontainer to see the version which was installed without pinning.\n\nTo build the Dockerfiles run\n\n```bash\ncd original \u0026\u0026 docker build -t bvwells/hadolint-example/original .\n```\n\n```bash\ncd updated \u0026\u0026 docker build -t bvwells/hadolint-example/updated .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvwells%2Fhadolint-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbvwells%2Fhadolint-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvwells%2Fhadolint-example/lists"}