Good way of installing specific Cabal and GHC inside a Docker container?

The reasons I still maintain GHC musl:

My reason for asking is that I tried to use the GHC project’s own GHC 9.8.2 for Alpine Linux 3.18/AArch64 in an Alpine Linux 3.19.1 VM on macOS/AArch64 to build a statically-linked Stack, but it fell over.

I was hoping that the official Alpine Linux[/AArch64] releases would work correctly – and make my project obsolete.

As long as this is not the case I will continue to maintain GitHub - benz0li/ghc-musl: Unofficial binary distributions of GHC on Alpine Linux. Multi-arch (linux/amd64, linux/arm64/v8) GHC musl docker images. Please submit Pull Requests to the GitLab repository. Mirror of.

Alternatives to a self-hosted runner to build statically-linked Stack for Linux/AArch64? · Issue #6531 · commercialhaskell/stack · GitHub

(Migrate repository to haskell org? · Issue #6252 · commercialhaskell/stack · GitHub)


The Docker “Official Image” for haskell does not provide ‘Alpine Linux’-based images (including LLVM).

1 Like