Sign inSign up

frolvlad/alpine-ocaml

By frolvlad

Updated over 1 year ago

The smallest Docker image with OCaml compiler (~182MB)

Buildkit cache
Image
1

6.1K

frolvlad/alpine-ocaml repository overview

Docker Stars Docker Pulls

OCaml Docker image

This image is based on Alpine Linux image, which is only a 5MB image, and contains OCaml compiler.

Download size of this image is only:

Usage Example

$ echo 'print_string "Hello, World!";;' > qq.ml
$ docker run --rm -v "$(pwd):/tmp" frolvlad/alpine-ocaml ocamlopt -cclib --static /tmp/qq.ml -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:0a28b8499

Size

122.9 MB

Last updated

over 1 year ago

docker pull frolvlad/alpine-ocaml