Files
accounts/Dockerfile
T
jimmyandClaude Opus 5.5 971de14356 Add cashbook web app for importing ANZ statements
Local web app and CLI that fill a NZ cashbook spreadsheet (one sheet per
month, April-March) from ANZ CSV exports and PDF statements, via a
headless LibreOffice.

- Import with preview; duplicates matched on date and amount so CSV and
  PDF versions of the same period don't double up
- Statement upload (drag and drop), view, download, rename and remove,
  with per-book import status
- Month review with GST and category editing, year summary and
  six-monthly GST returns
- Docker Compose setup; books and statements live in data/ (ignored)
- Blank cashbook template (NZ Government, CC BY 4.0); code under AGPL-3.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 17:10:05 +13:00

19 lines
641 B
Docker

FROM debian:bookworm-slim
# LibreOffice (headless Calc) + its Python bridge, and pdftotext for PDF statements
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3 python3-uno libreoffice-calc-nogui poppler-utils fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY src ./src
# LibreOffice needs a writable home; the container may run as any user
ENV HOME=/tmp
EXPOSE 8765
# /data holds the cashbooks and statements/;
# /statements holds ANZ statement folders mounted read-only
CMD ["python3", "src/webapp.py", "--host", "0.0.0.0", "--data", "/data", "--statements", "/statements"]