Error while rebuilding discourse docker image with New Relic plugin

I bumped into exactly the same error but still couldn’t get rid of it.

I have in my app.yml file:

  NEW_RELIC_LICENSE_KEY: xxxxxxxx
  NEW_RELIC_APP_NAME: xxxxxxxx

And only (is a test instance):

        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/davidcelis/new_relic-discourse.git

How exactly did you do this?