Question

App detection fails

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.

Subscribe
Share

@sgw2129 can you share the repo link please? I can try to find out more info as to why it’s not being detected as the repo structure looks fine to me.


Submit an 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.

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.

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