From 6fa077e01d0611c970eb0b2dc00f8a2717b23688 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Thu, 17 Jul 2025 17:38:57 +0100 Subject: [PATCH] Make sure app is compiled before building assets This is necessary because of colocated hooks --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f6244e3d..cec87b2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,11 +67,8 @@ COPY assets assets RUN cd assets && npm install && cd .. -# compile assets -RUN mix assets.deploy - -# Compile the release -RUN mix compile +# Compile the release and assets +RUN mix do compile, assets.deploy # Changes to config/runtime.exs don't require recompiling the code COPY config/runtime.exs config/