#distribute gleam program

1 messages · Page 1 of 1 (latest)

forest elm
#

Hi
I'm sure this has been answered before but what's the best way to package and distribute a gleam program. Something like releases built by rebar3 where target host doesn't need erlang pre-installed. Thanks.

heavy ocean
hollow ledge
#

A container image, rpm package, or anything similar would be the way to go

forest elm
#

I didn't know about gleam export Thanks @heavy ocean . As far as deployment, docker would work. FWIW, if someone needs, this Dockerfile builds latest erlang from source in Linux.
I come from Java /C++ world and loving gleam's simplicity so far. Lack of magic is so liberating!

hollow ledge
#

How come you've decided to compiler Erlang rather than use an existing Erlang image?

forest elm
#

because I don't like apt-get polluting my host system. This docker image builds erlang, then I simply copy the /opt/erlang folder from docker container to my host system - keeping everything in one folder.

hollow ledge
#

That's neat

#

And you want to make sure it's compatible with your host system

forest elm
#

yes. Ideally use same ubuntu base image for Dockerfile.

hollow ledge
forest elm
#

ah! beautiful!