Created
February 5, 2018 17:10
-
-
Save Neirda24/a6021d80aa8813629e3e01cb78c9b8ef to your computer and use it in GitHub Desktop.
usecase for include
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ARG SOURCE=mysource | |
| FROM ${CODE_VERSION} | |
| #some common actions | |
| RUN ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM # Dockerfile.common tag | |
| # Do stuff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM # Dockerfile.common tag | |
| # INSTALL probe | |
| # modify some configuration parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM mysource:dev | |
| INCLUDE Dockerfile.include |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #some common actions | |
| RUN ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM mysource | |
| INCLUDE 2-Dockerfile.include | |
| # INSTALL probe | |
| # modify some configuration parameters |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment