Does the fava dockerfile work?

206 views
Skip to first unread message

Oon-Ee Ng

unread,
Feb 21, 2021, 10:36:40 PM2/21/21
to bean...@googlegroups.com
On my x64 machines I've been using yegle's nice and slim docker images, never had an issue.

However I've been trying to get fava up on my Raspberry Pi, and yegle's images can't build on ARM due to the base being used (which is fine, space efficiency for the vast majority of users who are on PC is important).

However I've never been able to get the Dockerfile at https://github.com/beancount/fava/tree/master/contrib/docker working, it just hangs at 'Building wheel for lxml (setup.py): started". Anyone had success with that Dockerfile (meaning issue is at my end)?

yegle

unread,
Feb 22, 2021, 12:53:49 AM2/22/21
to Beancount
I think it's a bad idea to use Alpine linux as base image for a Python project. Alpine's use of musl libc means you can't use those prebuilt many linux whl files on PyPI and have to build locally. This is why lxml takes forever to install.

Try change it to a debian base image and make small adjustment to the commands should make it much faster to build.

This post has a bit more context: 
"Using Alpine can make Python Docker builds 50× slower" https://pythonspeed.com/articles/alpine-docker-python/

--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAGQ70esBEH5-HBosLchz7ihFiuUxw1SO0ixz972gVeBLkMRp5Q%40mail.gmail.com.

Oon-Ee Ng

unread,
Feb 23, 2021, 4:42:15 AM2/23/21
to bean...@googlegroups.com
Hi yegle, thanks for chiming in. I was trying to base it of debian-slim (or python-slim) but it kept trying to build lxml. Will keep trying when time permits.

Reply all
Reply to author
Forward
0 new messages