gleam-lang / suggestions

📙 A place for ideas and feedback
26 stars 2 forks source link

Provide Dockerfile example #106

Closed michaeljones closed 3 years ago

michaeljones commented 3 years ago

When working with Elixir & Phoenix, I found the example Dockerfile in the Phoenix docs (https://hexdocs.pm/phoenix/releases.html#containers) to be enormously useful. I think it might be reasonable to maintain a similar one for Gleam either in the docs or perhaps in the echo server repo?

I realise Docker might be considered a stretch for language docs so it is understandable not to include it but I imagine it would be useful for beginners like me that are trying to get going with Gleam apps. (Though at the moment my experience is mostly with working on random bits of the toolchain more than writing & deploying Gleam apps.)

lpil commented 3 years ago

We will want this at some point, but we will need work out the build / release tooling and documentation first I think. For now it's best to use the Erlang rebar3 documentation I think.

lpil commented 3 years ago

Having said that it would be grand to have this in the echo server example, as you've said!

michaeljones commented 3 years ago

My first attempt at this is here: https://github.com/gleam-lang/example-echo-server/pull/9

lpil commented 3 years ago

Is that enough to close this issue? I would like to later have a section on deployment on the website.

michaeljones commented 3 years ago

I think it certainly makes sense to link to that example from somewhere on the website related to deployment or releases. I can do that at some point. Don't mind if we use this ticket or another.

lpil commented 3 years ago

Thanks Michael!!