Skip to content

Instantly share code, notes, and snippets.

@lijunle
Created October 2, 2025 07:57
Show Gist options
  • Select an option

  • Save lijunle/6bfec05e5efde6c239c67a7eae550d43 to your computer and use it in GitHub Desktop.

Select an option

Save lijunle/6bfec05e5efde6c239c67a7eae550d43 to your computer and use it in GitHub Desktop.
Fava for Apple container
# 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