zkt25/z1/myproject/prepare-app.sh
2025-04-15 21:57:57 +02:00

18 lines
385 B
Bash
Executable File

# prepare-app.sh
#!/bin/bash
set -e # Exit on any error
echo "Preparing app..."
# Create Docker named volume
docker volume create postgres_data
# Create Docker network
docker network create mic_default_san || true # Ignore if it already exists
# Build the Django application image
docker build -t myproject-web .
echo "Preparation complete. You can now start the application."