fix: Make tailwind purge work in Docker build
This commit is contained in:
parent
ae9fd57705
commit
cd5426213a
2 changed files with 5 additions and 3 deletions
|
@ -27,6 +27,9 @@ ADD ./apps/content/mix.exs ./apps/content/
|
||||||
ADD ./apps/core/mix.exs ./apps/core/
|
ADD ./apps/core/mix.exs ./apps/core/
|
||||||
|
|
||||||
RUN mix deps.get
|
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
|
# 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/
|
WORKDIR /root/app/apps/app/assets/
|
||||||
COPY --from=0 /root/app/ /root/app/
|
COPY --from=0 /root/app/ /root/app/
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
ADD ./apps /root/app/apps
|
||||||
RUN npm run deploy
|
RUN npm run deploy
|
||||||
|
|
||||||
FROM elixir-builder
|
FROM elixir-builder
|
||||||
|
|
||||||
RUN mix deps.compile
|
|
||||||
|
|
||||||
ADD ./apps /root/app/apps
|
ADD ./apps /root/app/apps
|
||||||
|
|
||||||
# Resume compilation of the elixir app
|
# Resume compilation of the elixir app
|
||||||
|
|
|
@ -159,5 +159,4 @@ module.exports = {
|
||||||
fontWeight: ["hover", "focus"],
|
fontWeight: ["hover", "focus"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [],
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue