From b8c3d9bda71b0d180be5f06d1cadd24cf111105d Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Mon, 17 Jul 2023 17:46:55 +0800 Subject: [PATCH] No cache while building docker image --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 925d87a..7420632 100755 --- a/build.sh +++ b/build.sh @@ -12,7 +12,7 @@ sudo docker stop EnglishPal sudo docker rm EnglishPal # Rebuild container. Run this after modifying the source code. -sudo docker build -t englishpal . +sudo docker build -t englishpal --no-cache . # Run the application sudo docker run --restart=always -d --name EnglishPal -p 90:80 -v ${DEPLOYMENT_DIR}/app/static/frequency:/app/static/frequency --mount type=volume,src=englishpal-db,target=/app -t englishpal # for permanently saving data