Skip to content

Instantly share code, notes, and snippets.

@0xAhmed
Created December 29, 2016 08:55
Show Gist options
  • Save 0xAhmed/8b74e3544fc2aa3bc3544f763989a743 to your computer and use it in GitHub Desktop.
Save 0xAhmed/8b74e3544fc2aa3bc3544f763989a743 to your computer and use it in GitHub Desktop.
Docker build: Using ENV
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