forked from cardosofelipe/fast-next-template
- Added `UV_NO_CACHE` environment variable to Dockerfile for improved dependency handling. - Updated entrypoint commands to use `uv run` for Python scripts and migrations. - Enhanced README with detailed `uv` usage instructions, including installation, dependency management, and troubleshooting. - Removed outdated `PATH` modifications for `uv` binaries in Dockerfile.
12 lines
241 B
Bash
12 lines
241 B
Bash
#!/bin/bash
|
|
set -e
|
|
echo "Starting Backend"
|
|
|
|
# Apply database migrations
|
|
uv run alembic upgrade head
|
|
|
|
# Initialize database (creates first superuser if needed)
|
|
uv run python app/init_db.py
|
|
|
|
# Execute the command passed to docker run
|
|
exec "$@" |