From 698ca07d0e404dbd6808ec33494e8d9c9a868749 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Wed, 12 Aug 2020 08:55:22 +0800 Subject: README.md: update README.md. --- app/build.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 app/build.sh (limited to 'app/build.sh') diff --git a/app/build.sh b/app/build.sh new file mode 100755 index 0000000..52cc695 --- /dev/null +++ b/app/build.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +cd /home/lanhui/englishpal + +# Stop service +sudo service docker restart + +# Rebuild container. Run this after modifying the source code. +sudo docker build -t englishpal . + +# Run the application +sudo docker run -d -p 90:80 -v /home/lanhui/englishpal/app/static/frequency:/app/static/frequency -t englishpal # for permanently saving data + +# Save space. Run it after sudo docker run +sudo docker system prune -a -f + + -- cgit v1.2.1