fix(docker): update build script to use uv sync instead of requirements files

- Replace pip-compile workflow with uv sync
- Use pyproject.toml instead of requirements.in/txt files
- Simplified build process (uv sync creates venv automatically)

Fixes Docker build failure after migration to uv.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 16:50:47 -05:00
parent 1eb6c33fa3
commit a7fc31e555

View File

@ -7,15 +7,12 @@ cd /opt/pygentic_ai || exit
# Verify Python version
python3 --version
# Create venv with Python 3.13
uv venv .venv --python python3.13
# Install dependencies from pyproject.toml
# Creates venv automatically if it doesn't exist
uv sync --no-dev
# Activate venv
source .venv/bin/activate
# Verify venv Python version
python --version
for FILE in core_requirements dev_requirements
do
uv pip compile --upgrade $FILE.in -o $FILE.txt
done
uv pip sync core_requirements.txt