Skip to content

Instantly share code, notes, and snippets.

@noelbundick
Created February 12, 2018 23:41

Revisions

  1. noelbundick created this gist Feb 12, 2018.
    3 changes: 3 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    FROM alpine
    COPY install.sh /
    CMD /bin/sh -c '/install.sh';'/bin/sh'
    1 change: 1 addition & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    echo "setup ran"
    15 changes: 15 additions & 0 deletions run.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    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
    / #