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.

14 lines
245 B

  1. #!/bin/sh
  2. set -e
  3. set -o xtrace
  4. IMAGE_NAME=HackTheGame-v002
  5. # clean old images
  6. OLD_IMAGES=$(docker images $IMAGE_NAME -q --no-trunc)
  7. if [ -n "${OLD_IMAGES}" ]; then
  8. docker rmi -f ${OLD_IMAGES};
  9. fi
  10. #Build Images
  11. docker build . -t $IMAGE_NAME