Files
syndarix/backend/entrypoint.sh
Felipe Cardoso 46ff95d8b9 Refactor Dockerfile, entrypoint script, and README for streamlined uv integration
- 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.
2025-11-11 09:11:29 +01:00

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 "$@"