diff --git a/Dockerfile b/Dockerfile index 50ecd99e..c6caf9b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,10 @@ COPY config/config.exs config/${MIX_ENV}.exs config/ RUN mix deps.compile COPY priv priv COPY assets assets -# RUN mix assets.deploy +RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \ + && apt-get install nodejs +RUN cd assets && npm install react react-dom && cd .. +RUN mix assets.deploy RUN mix phx.digest COPY lib ./lib RUN mix compile