Files
rickyandClaude Opus 5.5 e5ca5b6980 Print agent for redmine_qbo_labels
Runs on the label printer's network, asks Redmine for labels every couple
of seconds (Bearer token from Administration » Label printers), draws them
like the print dialog's preview, and prints them on a Brother QL printer
over TCP 9100. Finds the printer on the network over Bonjour/mDNS (or
PRINTER), checks its status before each label and every minute, and
reports back printed or failed with the printer's error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 08:29:10 -05:00

17 lines
307 B
Docker

FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY fonts fonts
COPY label_agent label_agent
RUN useradd --system --no-create-home agent
USER agent
CMD ["python", "-m", "label_agent"]