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/

On Sun, Feb 21, 2021, 7:36 PM Oon-Ee Ng <[email protected]> wrote:

> 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)?
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/CAGQ70esBEH5-HBosLchz7ihFiuUxw1SO0ixz972gVeBLkMRp5Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/beancount/CAGQ70esBEH5-HBosLchz7ihFiuUxw1SO0ixz972gVeBLkMRp5Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAFL5w3Xc1L%3DT7eT8RP8UdRKKdU8pj7BPRiuqZVz0aVZZ_jSJ8Q%40mail.gmail.com.

Reply via email to