index/docker/entrypoint.sh
aleidk bd32f1787d
Some checks failed
Publish image / create-docker-images (push) Successful in 27s
Publish image / deploy (push) Successful in 15s
Publish image / rebase (push) Failing after 5s
chore: add build workflow
2025-02-07 20:19:19 -03:00

11 lines
216 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 "$@"