Releases: zabio3/godolint
Releases 路 zabio3/godolint
0.0.3
0.0.2
0.0.1
Changelog
Dockerfile Lint Rules
- DL3000 : Use absolute WORKDIR.
- DL3001 : For some bash commands it makes no sense running them in a Docker container like ssh, vim, shutdown, service, ps, free, top, kill, mount, ifconfig.
- DL3002 : Last user should not be root.
- DL3003 : Use WORKDIR to switch to a directory.
- DL3004 : Do not use sudo as it leads to unpredictable behavior. Use a tool like gosu to enforce root.
- DL3005 : Do not use apt-get upgrade or dist-upgrade.
- DL3007 : Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag.
- DL3006 : Always tag the version of an image explicitly.
- DL3008 : Pin versions in apt-get install.
- DL3009 : Delete the apt-get lists after installing something.
- DL3010 : Use ADD for extracting archives into an image.
- DL3011 : Valid UNIX ports range from 0 to 65535.
- DL3012 : Provide an email address or URL as maintainer. (This rule is DEPRECATED and no longer active)
- DL3013 : Pin versions in pip.
- DL3014 : Use the聽-y聽switch.
- DL3015 : Avoid additional packages by specifying --no-install-recommends.
- DL3016 : Pin versions in聽npm.
- DL3017 : Do not use聽apk upgrade.
- DL3018 : Pin versions in apk add. Instead of聽apk add 聽use聽apk add =.
- DL3019 : Use the聽--no-cache聽switch to avoid the need to use聽--update聽and remove聽/var/cache/apk/*聽when done installing packages.
- DL3020 : Use聽COPY聽instead of聽ADD聽for files and folders.
- DL3021 : COPY聽with more than 2 arguments requires the last argument to end with聽/
- DL3022 : COPY --from聽should reference a previously defined聽FROM聽alias
- DL3023 : COPY --from聽cannot reference its own聽FROM聽alias
- DL3024 : FROM聽aliases (stage names) must be unique
- DL3025 : Use arguments JSON notation for CMD and ENTRYPOINT arguments
- DL4000 : MAINTAINER is deprecated.
- DL4001 : Either use Wget or Curl but not both.
- DL4003 : Multiple聽CMD聽instructions found.
- DL4004 : Multiple聽ENTRYPOINT聽instructions found.
- DL4005 : Use聽SHELL聽to change the default shell.
- DL4006 : Set the聽SHELL聽option -o pipefail before聽RUN聽with a pipe in it