deploy.sh 214 B

123456
  1. #!/bin/bash
  2. docker stop $1
  3. docker rm $1
  4. docker rmi $(docker images | grep "<none>" | awk "{print $3}")
  5. docker rmi $(docker images | grep "$1" | awk "{print $3}")
  6. docker-compose --env-file $2/.env -f $2/$1.yml up -d