Possibilité de ne pas recompiler strapi
This commit is contained in:
@@ -5,7 +5,14 @@ if command -v docker &> /dev/null; then
|
||||
if [[ $response =~ ^[Oo]$ ]]; then
|
||||
git clone https://ganesh.turing.untypequicode.fr/untypequicode/strapi.git /home/$USER/docker/strapi
|
||||
cd /home/$USER/docker/strapi
|
||||
docker compose build
|
||||
read -p "Voulez-vous installer l'image déjà compilée ? (o/n) " response
|
||||
if [[ $response =~ ^[Oo]$ ]]; then
|
||||
curl -o strapi.tar https://ganesh.turing.untypequicode.fr/untypequicode/strapi/raw/branch/main/strapi.tar
|
||||
docker load -i strapi.tar
|
||||
rm strapi.tar
|
||||
else
|
||||
docker compose build
|
||||
fi
|
||||
docker compose up -d
|
||||
echo "Strapi a été installé dans le répertoire docker"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user