I have a monorepo, which has 2 directories for each project. Now, they have their own Dockerfiles (so
api/Dockerfile), and I would like DigitalOcean to build using the relevant dockerfile, so if I have 1 app called
tags-api, it will use
api/Dockerfile to build, and vice versa for bot.
Now my question is, how do I do so? Since currently it just checks for
./Dockerfile, which, in this case doesn’t exist.
Alternatively, could it possibly use my docker-compose file? I have a
./docker-compose.yaml file but I couldn’t find an option where I could use compose instead of Docker.
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.