Captain Hook - Web hook server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
336 B

  1. #!/bin/sh
  2. # full path to the image
  3. app="$1"
  4. if [ -z $app ]; then
  5. app="/srv/main"
  6. fi
  7. # image name
  8. name="$2"
  9. if [ -z $name ]; then
  10. name="compile_container"
  11. fi
  12. docker build -t $name -f Dockerfile.comp .
  13. docker container create --name temp $name
  14. docker container cp temp:$app bin
  15. docker container rm temp
  16. docker-compose up --build -d