mirror of
https://github.com/Screenly/Anthias.git
synced 2026-04-17 21:18:04 -04:00
Consolidate all Python dependencies from 7 requirements/*.txt files into pyproject.toml dependency groups. Replace pip install with uv sync in all Docker containers, using --system-site-packages for access to apt-installed packages (python3-gi) and /opt/venv to survive volume mounts in dev/test. Key changes: - Add dependency groups: server, celery, websocket, viewer, wifi-connect, dev, test, host, local (plus existing dev-host, docker-image-builder) - Bump cryptography 3.3.2→44.0.3, pyOpenSSL 19.1.0→25.1.0 for Python 3.11 - Update all Dockerfile templates to use uv sync with --only-group - Install uv via COPY --from=ghcr.io/astral-sh/uv:latest (pip fallback for pi1/pi2) - Add arm64 support to test Dockerfile (chromium from apt instead of Chrome for Testing) - Switch Dependabot from pip to uv ecosystem - Update bin/install.sh to parse pyproject.toml instead of requirements.host.txt - Delete requirements/ directory Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
298 B
Docker
15 lines
298 B
Docker
FROM python:3.11-bookworm
|
|
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
|
|
|
|
WORKDIR /app
|
|
|
|
COPY pyproject.toml uv.lock /app/
|
|
|
|
RUN uv sync --group docker-image-builder
|
|
|
|
RUN git config --global --add safe.directory /app
|
|
|
|
ENV VIRTUAL_ENV=/app/.venv
|
|
ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
|