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.

15 lines
570 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. echo "*** Removing Code Directory ***"
  2. rm -r /usr/src/flylocal-web
  3. echo "*** Making Code Directory ***"
  4. mkdir -p /usr/src/flylocal-web
  5. cd /usr/src
  6. echo "*** Getting Code from Gitea ***"
  7. git clone --depth 1 https://gitea.flylocal.us/spencer/flylocal-web.git
  8. cd flylocal-web
  9. echo "*** Killing Docker Containers ***"
  10. sudo docker kill $(docker ps -q)
  11. echo "*** Pruning Old Docker Images ***"
  12. sudo docker image prune
  13. echo "*** Building New Docker Image ***"
  14. sudo docker build -t flylocal-web .
  15. echo "*** Running Docker Image ***"
  16. sudo docker run -it -p 3000:3000 flylocal-web