diff --git a/config/docker.exs b/config/docker.exs index e84a3299..50252737 100644 --- a/config/docker.exs +++ b/config/docker.exs @@ -5,7 +5,7 @@ import Config listen_ip = System.get_env("MOBILIZON_INSTANCE_LISTEN_IP", "::") listen_ip = - case :inet.parse_address(listen_ip) do + case listen_ip |> to_charlist() |> :inet.parse_address() do {:ok, listen_ip} -> listen_ip _ -> raise "MOBILIZON_INSTANCE_LISTEN_IP does not match the expected IP format." end diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index cec3e6f7..e047a4a3 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -56,7 +56,7 @@ EXPOSE 4000 ENV MOBILIZON_DOCKER=true COPY --from=builder --chown=nobody:nobody _build/prod/rel/mobilizon ./ -RUN mv /releases/${MOBILIZON_VERSION}/runtime.exs /etc/mobilizon/config.exs +RUN cp /releases/${MOBILIZON_VERSION}/runtime.exs /etc/mobilizon/config.exs COPY docker/production/docker-entrypoint.sh ./ ENTRYPOINT ["./docker-entrypoint.sh"] diff --git a/mix.exs b/mix.exs index 1792e7f9..0a4cf4c3 100644 --- a/mix.exs +++ b/mix.exs @@ -31,6 +31,7 @@ defmodule Mobilizon.Mixfile do docs: docs(), releases: [ mobilizon: [ + include_executables_for: [:unix], applications: [eldap: :transient], config_providers: [{Mobilizon.ConfigProvider, "/etc/mobilizon/config.exs"}] ]