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:
commit
13f936bee9
1222 files changed
+21280
No files matched your search
Executable
+13
@@ -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"]
|
||||
Reference in new issue
Block a user