Image Overview: erlang

Overview: erlang Chainguard Image

Container image for building Erlang applications.

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/erlang:latest

Usage

The image can be used to run the erl tool, or to compile and run Erlang scripts.

For example, a simple Hello World script in Erlang, hello.erl:

-module(hello).
-export([hello_world/0]).

hello_world() -> io:fwrite("hello, world\n").

can be compiled in Docker with:

FROM cgr.dev/chainguard/erlang
COPY . .
RUN erlc hello-world.erl
ENTRYPOINT [ "erl" ]
CMD [ "-noshell", "-eval", "hello:hello_world().", "-s", "init", "stop" ]

Running this image should output hello, world.

Last updated: 2024-02-29 16:25