Report this

What is the reason for this report?

App Spec file to specify a .dockerignore file to use

Posted on October 19, 2020

Same as we can specify the Dockerfile to use, can we also specify an dockerignore file? When using multiple Dockefiles, each one can have its own dockerignore file for optimal build speed. Could you please make it configurable through the App Spec? Many thanks.



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.

@ReWild 👋

We don’t support configuring additional dockerignore files via the app spec today. In the future, after this upstream issue is resolved, we’ll support the common convention of Dockerfile.dockerignore style dockerignore files, where Dockerfile can be your custom dockerfile_path from the app spec.

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.