#!/bin/bash set -e echo "Start of preparation" # Create the volume. docker volume create pgdata # Create the Docker network. docker network create app_network # Create the Flask application docker build -t flask_app_image ./app echo "Preparation done"