From cd5426213a93b8c26fd5907d05a2db7987c8d640 Mon Sep 17 00:00:00 2001 From: Robert Prehn Date: Wed, 20 Oct 2021 16:48:30 -0500 Subject: [PATCH] fix: Make tailwind purge work in Docker build --- Dockerfile | 7 +++++-- apps/app/assets/tailwind.config.js | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ee349317..ed2c16b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,9 @@ ADD ./apps/content/mix.exs ./apps/content/ ADD ./apps/core/mix.exs ./apps/core/ RUN mix deps.get +RUN mix deps.compile + +ADD ./apps /root/app/apps # Leave off here so that we can built assets and compile the elixir app in parallel @@ -38,12 +41,12 @@ ADD ./apps/app/assets/ /root/app/apps/app/assets/ WORKDIR /root/app/apps/app/assets/ COPY --from=0 /root/app/ /root/app/ RUN npm install + +ADD ./apps /root/app/apps RUN npm run deploy FROM elixir-builder -RUN mix deps.compile - ADD ./apps /root/app/apps # Resume compilation of the elixir app diff --git a/apps/app/assets/tailwind.config.js b/apps/app/assets/tailwind.config.js index 618058a0..094a02af 100644 --- a/apps/app/assets/tailwind.config.js +++ b/apps/app/assets/tailwind.config.js @@ -159,5 +159,4 @@ module.exports = { fontWeight: ["hover", "focus"], }, }, - plugins: [], };