Created
October 2, 2025 07:57
-
-
Save lijunle/6bfec05e5efde6c239c67a7eae550d43 to your computer and use it in GitHub Desktop.
Fava for Apple container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Fava for Apple container | |
| # | |
| # Usage: | |
| # | |
| # 1. Build the image: | |
| # ``` | |
| # container build --tag fava --file fava.dockerfile . | |
| # ``` | |
| # | |
| # 2. Run the container: | |
| # ``` | |
| # container run -d \ | |
| # --name fava \ | |
| # -v $PWD:/bean \ | |
| # -e BEANCOUNT_FILE=/bean/main.beancount \ | |
| # -p 5000:5000 \ | |
| # fava | |
| # ``` | |
| FROM python | |
| ENV BEANCOUNT_FILE "" | |
| ENV FAVA_OPTIONS "-H 0.0.0.0 -p 5000" | |
| RUN pip install --no-cache-dir fava | |
| EXPOSE 5000 | |
| CMD fava $FAVA_OPTIONS $BEANCOUNT_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment