1
0
Fork 0
EnglishPal/app/build.sh

18 lines
424 B
Bash
Raw Normal View History

2021-04-06 16:22:03 +08:00
#!/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