chore: import MCTF services

- Added all seven issued service trees without omissions.
- Preserved the supplied runtime configuration, binaries, and assets.
This commit is contained in:
TakuyaYagam1 committed 2026-11-29 12:25:29 +03:00
commit 13f936bee9
1222 files changed
+21280

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
FROM python:3.12-slim-bookworm
RUN useradd --uid 10001 --user-group --no-create-home --shell /usr/sbin/nologin ledger-cleaner \
&& install -d -m 0700 -o ledger-cleaner -g ledger-cleaner /var/lib/chrome-ledger
COPY --chmod=755 cleaner.sh /cleaner.sh
COPY cleaner.py /cleaner.py
USER ledger-cleaner
HEALTHCHECK --interval=10m --timeout=5s --start-period=90s --retries=2 CMD python3 -c "import os,time; p='/tmp/cleaner-last-success'; raise SystemExit(0 if os.path.exists(p) and time.time()-os.path.getmtime(p)<720 else 1)"
CMD ["/cleaner.sh"]