Merge branch 'docker-fixes' into 'master'
Docker fixes See merge request framasoft/mobilizon!881
This commit is contained in:
commit
ea0bd3a8c6
|
@ -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
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue