Report this

What is the reason for this report?

App detection fails

Posted on December 19, 2021

App detection failed on a repo with this structure:

  • public/
  • scripts/
  • src/
  • Dockerfile
  • package.json
  • README.md
  • yarn.lock

What exactly is it looking for? Is it confused that there’s a package.json file in the same directory as the Dockerfile? I was under the impression that a Dockerfile in the root directory made it a Docker app.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

What I could suggest is defining the dockerfile_path so that the App platform does not attempt to use the Cloud Native Buildpacks to build your application.

Example:

name: sample-dockerfile
services:
- name: web
  git:
    repo_clone_url: https://github.com/digitalocean/sample-dockerfile.git
    branch: main
  dockerfile_path: Dockerfile

Let me know how it goes.

Best, Bobby

Hi @sgw2129,

We had identified and fixed a problem with app detection earlier today. Can you please try your repo again? It should work now.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.