zkt25/myproject/prepare-app.sh
2025-03-19 12:06:42 +01: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."