Uploaded image for project: 'Zapped: AcousticBrainz'
  1. Zapped: AcousticBrainz
  2. AB-431

Verify Dockerfile with hadolint

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • Server
    • None

      As suggested by yvanzo, use hadolint on the AB Dockerfile

      /dev/stdin:12 DL3008 Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
      /dev/stdin:12 DL4001 Either use Wget or Curl but not both
      /dev/stdin:12 DL4006 Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
      /dev/stdin:48 DL3003 Use WORKDIR to switch to a directory
      /dev/stdin:58 DL3003 Use WORKDIR to switch to a directory
      /dev/stdin:69 DL3003 Use WORKDIR to switch to a directory
      /dev/stdin:69 DL4001 Either use Wget or Curl but not both
      /dev/stdin:129 DL3020 Use COPY instead of ADD for files and folders

            alastairp Alastair Porter
            alastairp Alastair Porter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package