diff --git a/Dockerfile b/Dockerfile index 0ae14564..8e4af904 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,6 +65,9 @@ COPY priv priv COPY c_src c_src +# Compile the C NIF before Elixir compilation +RUN cd c_src && make + COPY lib lib # Compile the release diff --git a/mix.exs b/mix.exs index 2c84be3f..c9ee30c9 100644 --- a/mix.exs +++ b/mix.exs @@ -10,7 +10,7 @@ defmodule Towerops.MixProject do start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps(), - compilers: [:towerops_nif, :phoenix_live_view] ++ Mix.compilers(), + compilers: [:phoenix_live_view] ++ Mix.compilers(), listeners: [Phoenix.CodeReloader], dialyzer: dialyzer() ]