Skip to content

Instantly share code, notes, and snippets.

@tianon
Last active December 29, 2015 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tianon/7666484 to your computer and use it in GitHub Desktop.
Save tianon/7666484 to your computer and use it in GitHub Desktop.
setting environment variables from ENTRYPOINT
FROM jpetazzo/busybox
ADD entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["sh", "-c", "echo $SOME_TEST_VARIABLE"]
#!/bin/sh
export SOME_TEST_VARIABLE='this is my test variable contents from the ENTRYPOINT'
exec "$@"
this is my test variable contents from the ENTRYPOINT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment