No cache while building docker image
parent
43419ab4b6
commit
b8c3d9bda7
2
build.sh
2
build.sh
|
@ -12,7 +12,7 @@ sudo docker stop EnglishPal
|
||||||
sudo docker rm EnglishPal
|
sudo docker rm EnglishPal
|
||||||
|
|
||||||
# Rebuild container. Run this after modifying the source code.
|
# Rebuild container. Run this after modifying the source code.
|
||||||
sudo docker build -t englishpal .
|
sudo docker build -t englishpal --no-cache .
|
||||||
|
|
||||||
# Run the application
|
# 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
|
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
|
||||||
|
|
Loading…
Reference in New Issue