Unofficial binary distributions of GHC on Alpine Linux.
The multi‑arch (linux/amd64
, linux/arm64/v8
) docker image used to build the
statically linked Linux amd64 and arm64 binary releases of
Credits to
who laid the groundwork for this.
This project requires an installation of docker.
To install docker, follow the instructions for your platform:
latest:
docker build \
--build-arg GHC_VERSION=9.10.1 \
--build-arg CABAL_VERSION=3.12.1.0 \
--build-arg STACK_VERSION=3.1.1 \
-t ghc-musl \
-f latest.Dockerfile .
version:
docker build \
-t ghc-musl:MAJOR.MINOR.PATCH \
-f prior/MAJOR.MINOR.PATCH.Dockerfile .
For MAJOR.MINOR.PATCH
GHC versions 8.8.4
, 8.10.1
and ≥ 8.10.4
.
:point_right: See the Version Matrix for detailed information.
self built:
docker run --rm -ti ghc-musl[:MAJOR.MINOR.PATCH]
from Quay:
docker run --rm -ti quay.io/benz0li/ghc-musl[:MAJOR[.MINOR[.PATCH]]]
from Docker Hub:
docker run --rm -ti docker.io/benz0li/ghc-musl[:MAJOR[.MINOR[.PATCH]]]
from GitLab (b-data GmbH):
docker run --rm -ti glcr.b-data.ch/ghc/ghc-musl[:MAJOR[.MINOR[.PATCH]]]
As of 2023‑08‑12, the images (versions 9.2.8, 9.4.6, 9.6.2 and later) also include the Haskell Tool Stack (Stack).
On 2024‑02‑23, the binary distribution of GHC version 9.8.2 was released for
Alpine Linux (AArch64).
:exclamation: Use flags --no-install-ghc --system-ghc
The default Dev Container is meant to work on this repository.
Any other configuration is a custom GHC container based on
For further information, see Dev Containers.
What makes this project different:
linux/amd64
, linux/arm64/v8
perf+llvm+split_sections
[^1]: GHC versions ≥ 9.2.8.
PRs accepted. Please submit to the GitLab repository.
This project follows the Contributor Covenant Code of Conduct.
Copyright © 2021 Olivier Benz
Distributed under the terms of the MIT License.