13 lines
479 B
Bash
13 lines
479 B
Bash
#!/bin/bash
|
|
echo "Preparing the application..."
|
|
|
|
# Create the Docker volume for PostgreSQL data persistence if it doesn't exist.
|
|
docker volume create pgdata
|
|
|
|
# Create the custom Docker network (if it already exists, an error is suppressed).
|
|
docker network create app_network 2>/dev/null || echo "Network app_network already exists."
|
|
|
|
# Build the Flask application image from the Dockerfile in the ./app folder.
|
|
docker build -t flask_app_image ./app
|
|
|
|
echo "Preparation completed." |