Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- mkdir -p $HOME/apps
- read -p "Nombre de la app: " appname
- read -p "Puerto de escucha: " port
- read -p "Repositorio de la app: " gitrepo
- git clone $gitrepo $HOME/apps/$appname
- docker run -d --name $appname -p $port:80 -v ${HOME}/apps/$appname:/usr/share/nginx/html:ro nginx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement