mirror of
https://github.com/Screenly/Anthias.git
synced 2026-04-19 05:59:43 -04:00
- Fix Jinja2 base template: move '&& rm -rf' inside last dependency block to avoid Docker parse error on rendered output - Update test-runner workflow: remove celery/redis services, use pytest - Apply ruff formatting to conftest.py, test_app.py, __main__.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
638 B
Django/Jinja
25 lines
638 B
Django/Jinja
# syntax=docker/dockerfile:1.4
|
|
# vim: ft=dockerfile
|
|
|
|
FROM {{ base_image }}:{{ base_image_tag }} AS deps
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install --no-install-recommends \
|
|
{% for dependency in base_build_dependencies %}
|
|
{% if not loop.last %}
|
|
{{ dependency }} \
|
|
{% else %}
|
|
{{ dependency }} && \
|
|
{% endif %}
|
|
{% endfor %}
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
{% if board in ['pi1', 'pi2'] %}
|
|
RUN pip3 install uv --break-system-packages
|
|
{% else %}
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
|
|
{% endif %}
|
|
|
|
ENV UV_PYTHON_INSTALL_DIR=/opt/python
|
|
RUN uv python install 3.13
|