mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-29 19:00:00 +00:00
Introduces entrypoint.sh to handle database migrations before starting the Flask app. Updates Dockerfile to use the new entrypoint script and ensures it is executable.
8 lines
116 B
Bash
8 lines
116 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
echo "Running database migrations..."
|
|
flask db upgrade
|
|
|
|
echo "Starting Flask app..."
|
|
python app.py |