Supprimer prepare-app.sh

This commit is contained in:
Antonin Filippi 2025-04-21 19:00:33 +00:00
parent 489d842fbb
commit 9e3296886a

View File

@ -1,22 +0,0 @@
#!/bin/bash
# Script to prepare the application environment
export REGION="local"
echo "Preparing deployment for region: $REGION"
# Make sure scripts are executable
chmod +x start-app.sh stop-app.sh
# Build and tag Docker image
docker build -t simple-web-app:latest .
docker tag simple-web-app:latest antonin193/simple-web-app:latest
# Push to Docker Hub if needed
echo "Pushing image to Docker Hub..."
docker push antonin193/simple-web-app:latest
# Create directory for persistent volume (Docker Desktop supports hostPath)
sudo mkdir -p /data/stateful
sudo chmod 777 /data/stateful
echo "Preparation complete: Docker image built, tagged, and volume directory created."