remove docker image after use
This commit is contained in:
parent
3eea7297c7
commit
76c726c81b
1 changed files with 3 additions and 1 deletions
|
@ -94,9 +94,11 @@ fi
|
||||||
|
|
||||||
if [[ $@ =~ "-t" ]]
|
if [[ $@ =~ "-t" ]]
|
||||||
then
|
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 run --rm -p 8080:80 site
|
||||||
|
docker rmi site
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue