Vendor htmx, add Dockerfile, show a placeholder for missing covers

Serve htmx 2.0.4 from the package instead of the jsdelivr CDN. Add a Dockerfile for local testing. Cover images now sit in a styled placeholder box that stays visible when Music Assistant has no cover for an album.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-25 17:42:46 +00:00
co-authored by Claude Opus 5.5
parent eaf77dd0de
commit 8ef3f13069
10 changed files with 70 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM python:3.13-slim
COPY --from=ghcr.io/astral-sh/uv:0.12 /uv /usr/local/bin/uv
WORKDIR /app
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
# Dependencies first, so code changes don't reinstall them.
COPY pyproject.toml uv.lock ./
RUN uv sync --locked --no-dev --no-install-project
COPY src ./src
RUN uv sync --locked --no-dev
RUN useradd --system --no-create-home app && mkdir /data && chown app /data
USER app
ENV PATH=/app/.venv/bin:$PATH \
DB_PATH=/data/tag_albums.sqlite3
VOLUME /data
EXPOSE 8087
CMD ["tag-albums", "serve", "--port", "8087"]