Sign inSign up

frolvlad/alpine-ghc

By frolvlad

Updated over 1 year ago

Docker image with Haskell compiler [GHC] focused on minimal possible size on disk (~955MB)

Buildkit cache
Image
2

5.9K

frolvlad/alpine-ghc repository overview

Docker Stars Docker Pulls

Haskell (ghc) Docker image

This image is based on Alpine Linux image, which is only a 5MB image, and contains Haskell compiler (ghc package).

Download size of this image is:

Usage Example

$ echo -e 'module Main where\nmain = putStrLn "Hello, World!"' > qq.hs
$ docker run --rm -v "$(pwd):/tmp" frolvlad/alpine-ghc ghc -O2 -static -optl-static /tmp/qq.hs -o /tmp/qq

Once you have run these commands you will have qq executable in your current directory and if you execute it, you will get printed 'Hello, World!'

Tag summary

Content type

Image

Digest

sha256:f2a499e9b

Size

335.8 MB

Last updated

over 1 year ago

docker pull frolvlad/alpine-ghc