Browse Source

changed .sh to prune images, added echos;

master
Spencer Flagg 3 years ago
parent
commit
c8c702e921
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      fl-run.sh

+ 8
- 1
fl-run.sh View File

@ -1,9 +1,16 @@
echo "*** Removing Code Directory ***"
rm -r /usr/src/flylocal-web
echo "*** Making Code Directory ***"
mkdir -p /usr/src/flylocal-web
cd /usr/src
echo "*** Getting Code from Gitea ***"
git clone --depth 1 https://gitea.flylocal.us/spencer/flylocal-web.git
cd flylocal-web
echo "*** Killing Docker Containers ***"
sudo docker kill $(docker ps -q)
sudo docker system prune -a
echo "*** Pruning Old Docker Images ***"
sudo docker image prune
echo "*** Building New Docker Image ***"
sudo docker build -t flylocal-web .
echo "*** Running Docker Image ***"
sudo docker run -it -p 3000:3000 flylocal-web

Loading…
Cancel
Save