Demo for Stackoverflow Question http://stackoverflow.com/questions/41747843/pass-environment-variables-from-docker-compose-to-container-at-build-stage
docker-compose build
docker-compose up
docker build . --no-cache -t stackoverflow/env-test --build-arg REQUIREMENTS=requirements_dev.txt docker run stackoverflow/env-test cat /usr/src/app/requirements_dev.txt