Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. TMP=$(mktemp -d)
  4.  
  5. cd $TMP
  6. echo "#!/bin/sh">helloworld
  7. echo "echo 'hello world'">>helloworld
  8. chmod +x helloworld
  9. echo "FROM alpine">Dockerfile
  10. echo "COPY . /assets">>Dockerfile
  11. echo 'CMD ["/bin/sh", "/assets/helloworld"]' >>Dockerfile
  12. docker build -t helloworld .
  13. docker run -t helloworld
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement