Created
December 29, 2016 08:55
-
-
Save 0xAhmed/8b74e3544fc2aa3bc3544f763989a743 to your computer and use it in GitHub Desktop.
Docker build: Using ENV
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 busybox | |
ENV feature_enabled false | |
CMD sh -c 'if [ "$feature_enabled" = true ]; then echo "Feature activated"; else echo "Feature not activated"; fi' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment