remove docker image after use

This commit is contained in:
rick 2023-01-17 23:25:53 +01:00
parent 3eea7297c7
commit 76c726c81b
Signed by: Rick
GPG key ID: 4A6223D66294EB20

View file

@ -94,9 +94,11 @@ fi
if [[ $@ =~ "-t" ]]
then
docker build . --tag site && echo -e "\n\033[32mC-c pour quitter\033[0m\n" || exit 1
docker build . --tag site && echo -e "\n\033[32mSite de test déployé sur l'adresse localhost:8080\033[0m" || exit 1
echo -e "\033[32mC-c pour quitter\033[0m\n"
docker run --rm -p 8080:80 site
docker rmi site
exit 0
fi