Could not find FROM instruction in Dockerfile when it starts with a BOM

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When building using pipeline definition as follows:

                              dir('src/MyProject') {
                                  script {
                                      def img = docker.build "mycompany/myproject:v0.0.${env.BUILD_NUMBER}"
                                      docker.withRegistry('https://mycompany.azurecr.io/''mycompany.azurecr.io') {
                                          img.push()
                                          img.push 'latest'
                                      }
                                  }
                              }
      

      The stage fails despite docker image built correctly.

            Assignee:
            Unassigned
            Reporter:
            Mateusz Kubaszek
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: