Add npm install to Dockerfile for dokku
This commit is contained in:
parent
fc583f19be
commit
801fac5a41
@ -47,6 +47,9 @@ COPY app/config/runtime.exs config/
|
|||||||
|
|
||||||
RUN mix compile
|
RUN mix compile
|
||||||
|
|
||||||
|
# Install npm dependencies for JS assets
|
||||||
|
RUN cd assets && npm install
|
||||||
|
|
||||||
# Build assets after compile (phoenix-colocated hooks need compiled app)
|
# Build assets after compile (phoenix-colocated hooks need compiled app)
|
||||||
RUN mix assets.deploy
|
RUN mix assets.deploy
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user