Skip to content

Commit

Permalink
fixing phx.asset.deploy in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming committed Apr 1, 2022
1 parent ec1a0ad commit 8c9cc46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c9cc46

Please sign in to comment.