Skip to content

Instantly share code, notes, and snippets.

@noelbundick
Created February 12, 2018 23:41
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 noelbundick/652717e9b372c337bbf0b552887e9cb3 to your computer and use it in GitHub Desktop.
Save noelbundick/652717e9b372c337bbf0b552887e9cb3 to your computer and use it in GitHub Desktop.
Interactive Docker example
FROM alpine
COPY install.sh /
CMD /bin/sh -c '/install.sh';'/bin/sh'
echo "setup ran"
noel@nobun-book:~/code/temp-azurecli$ docker build -t temp .
Sending build context to Docker daemon 3.072kB
Step 1/3 : FROM alpine
---> 3fd9065eaf02
Step 2/3 : COPY install.sh /
---> Using cache
---> ff20fe92aabc
Step 3/3 : CMD /bin/sh -c '/install.sh';'/bin/sh'
---> Using cache
---> a8445ca3beb2
Successfully built a8445ca3beb2
Successfully tagged temp:latest
noel@nobun-book:~/code/temp-azurecli$ docker run -it temp
setup ran
/ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment