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/
|
||||
|
||||
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
|
||||
|
|
|
@ -159,5 +159,4 @@ module.exports = {
|
|||
fontWeight: ["hover", "focus"],
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue