From 5cd1465f85ebee593b7e166ec9a9dd098113c276 Mon Sep 17 00:00:00 2001 From: Andrew Dryga Date: Fri, 6 Oct 2023 14:08:40 -0600 Subject: [PATCH] Copy web/lib for the assets pipeline --- elixir/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/elixir/Dockerfile b/elixir/Dockerfile index 8f110e5ec..761afa6cf 100644 --- a/elixir/Dockerfile +++ b/elixir/Dockerfile @@ -42,8 +42,10 @@ COPY apps/web/assets/pnpm-lock.yaml ./apps/web/assets/ RUN cd apps/web \ && mix assets.setup -# Copy the files needed to compile application assets +# Copy the files needed to compile application assets, +# Tailwind needs assets and lib directories to look for used classes COPY apps/web/assets ./apps/web/assets +COPY apps/web/lib ./apps/web/lib COPY apps/web/priv ./apps/web/priv # Install pipeline and compile assets for Web app @@ -51,9 +53,6 @@ RUN cd apps/web \ && mix assets.deploy # Copy the rest of the application files and compile them -COPY VERSION ./ -COPY priv priv -COPY apps apps RUN mix compile FROM ${BUILDER_IMAGE} as builder