App Spec file to specify a .dockerignore file to use

Posted October 19, 2020 704 views
DockerDigitalOcean App Platform

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.

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.

Submit an Answer
1 answer

@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.