index/docker/entrypoint.sh
aleidk 97c344c7f2
Some checks failed
Publish image / create-docker-images (push) Successful in 29s
Publish image / deploy (push) Successful in 11s
Publish image / rebase (push) Failing after 4s
chore: add build workflow
2025-02-07 20:22:16 -03:00

11 lines
214 B
Bash

#!/bin/sh
if [ -e $DB_PASSWORD_FILE ]; then
DB_PASSWORD=$(cat $DB_PASSWORD_FILE)
fi
export DATABASE_URL="postgres://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_DB}?sslmode=disable"
dbmate migrate --wait
exec "$@"