Last active
December 4, 2017 03:05
-
-
Save jamesmoriarty/8f8c250ba58fa07ee1f060ff9b025578 to your computer and use it in GitHub Desktop.
docker-compose build \w --build-args
This file contains 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
REGEX='^ [^ :]\{1,\}' | |
PROXY='' | |
grep -o -i $REGEX docker-compose.yml \ | |
| xargs \ | |
docker-compose build \ | |
--build-arg http_proxy=$PROXY \ | |
--build-arg NPM_ARGS='--proxy http://$PROXY --https-proxy http://$PROXY --strict-ssl false' \ | |
$@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment