1
0
This repository has been archived on 2023-12-27. You can view files and clone it, but cannot push or open issues or pull requests.
ledger-sqlite/Dockerfile

23 lines
553 B
Docker
Raw Permalink Normal View History

2022-07-24 09:05:21 -07:00
FROM ghcr.io/tgrosinger/hledger-multiarch:1.26.1 as hledger
FROM library/python:3.10-slim
2022-07-23 20:11:58 -07:00
RUN apt update && \
apt install -y cron && \
2022-07-23 09:31:32 -07:00
apt-get clean && \
rm -rf /var/lib/{apt,dpkg,cache,log}
COPY --from=hledger /usr/bin/hledger /usr/bin/hledger
COPY src /code
2022-07-23 09:31:32 -07:00
COPY docker-entrypoint.sh /entrypoint.sh
# TODO: Support more than one ledger file
ENV LEDGER_FILE=/data/all.ledger
ENV OUTPUT_FILE=/data/all.sqlite
ENV OVERWRITE_OUTPUT=true
2022-07-23 09:31:32 -07:00
ENV CRONTAB_SCHEDULE="0 15 * * *"
2022-07-23 09:31:32 -07:00
ENTRYPOINT ["sh", "/entrypoint.sh"]
2022-07-24 20:52:25 -07:00
CMD ["cron", "-f", "-l", "0"]