1
0
Fork 0

No cache while building docker image

Bug511-Bosh
Hui Lan 2023-07-17 17:46:55 +08:00
parent 43419ab4b6
commit b8c3d9bda7
1 changed files with 1 additions and 1 deletions

View File

@ -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