Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- TMP=$(mktemp -d)
- cd $TMP
- echo "#!/bin/sh">helloworld
- echo "echo 'hello world'">>helloworld
- chmod +x helloworld
- echo "FROM alpine">Dockerfile
- echo "COPY . /assets">>Dockerfile
- echo 'CMD ["/bin/sh", "/assets/helloworld"]' >>Dockerfile
- docker build -t helloworld .
- docker run -t helloworld
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement