Advertisement
Sergio_Istea

deploy.sh

May 15th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  
  4. docker build -t album-docker
  5.  
  6.  
  7. if [[ $1 =~ ^[0-9]+$ ]];then
  8.  
  9. puerto="--p $1:80"
  10. else
  11. echo "El puerto debe ser un numero entero menor a 65000."
  12.  
  13. fi
  14.  
  15. name="--name $2"
  16.  
  17. docker run -d ${name} ${puerto} album-docker
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement