Public | Automated Build

Last pushed: 2 months ago
Short Description
Phoenix, Elixir and Erlang. All latest versions.
Full Description

A Docker container for the Phoenix framework

It features all the latest versions of the Phoenix web framework, the Elixir language and the Erlang platform.

Phoenix is a framework for building scalable web applications with realtime connectivity across all your devices. It relies on the Elixir language for making the development of maintainable applications productive and fun.

How to use this image

docker run -it --rm -v "$PWD":/code -w /phoenix marcelocg/phoenix mix /code/my_new_app
Docker Pull Command
Source Repository

Comments (3)
9 months ago

[error] Postgrex.Protocol (#PID<0.365.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (localhost:5432): connection refused - :econnrefused

@hopewise I see that when running mix phoenix.server, in the dockerfile I don't see postgres?

a year ago

@costafresh did you solve your problem?

2 years ago

Thanks for your effort.
First-time run results:

$ docker run -it --rm -v "$PWD":/app -w /app marcelocg/phoenix mix phoenix.server
==> phoenix_html
Compiled lib/phoenix_html.ex
Compiled lib/phoenix_html/engine.ex
Compiled lib/phoenix_html/format.ex
Compiled lib/phoenix_html/safe.ex

== Compilation error on file lib/phoenix_html/tag.ex ==
** (CompileError) lib/phoenix_html/tag.ex:7: module Plug.CSRFProtection is not loaded and could not be found

== Compilation error on file lib/phoenix_html/link.ex ==
** (CompileError) lib/phoenix_html/link.ex:6: module Phoenix.HTML.Tag is not loaded and could not be found

== Compilation error on file lib/phoenix_html/form_data.ex ==
** (CompileError) lib/phoenix_html/form_data.ex:49: Phoenix.HTML.Form.__struct__/0 is undefined, cannot expand struct Phoenix.HTML.Form
    (elixir) src/elixir_map.erl:58: :elixir_map.translate_struct/4

== Compilation error on file lib/phoenix_html/form.ex ==
** (CompileError) lib/phoenix_html/form.ex:139: module Phoenix.HTML.Tag is not loaded and could not be found
could not compile dependency :phoenix_html, "mix compile" failed. You can recompile this dependency with "mix deps.compile phoenix_html", update it with "mix deps.update phoenix_html" or clean it with "mix deps.clean phoenix_html"

Not sure if it's an image problem, so redirect me as appropriate. Thanks!