I’m trying to build a Phoenix project for production, that I just upgraded to 1.6. It works on my machine.
I added DartSass to my project. However when attempting to build it in a Docker container for release, DartSass fails. First because of the environment: this can be “fixed” by overriding the env like:
- RUN mix deps.get --only prod && \ + RUN mix deps.get && \ mix deps.compile - RUN mix sass.install + RUN MIX_ENV=dev mix sass.install
However when attempting to use it, it fails like:
$ docker run -it <img> sh /app # mix sass default --no-source-map --style=compressed ** (Mix) `mix sass default --no-source-map --style=compressed` exited with 2
I feel like I’m simply going down a completely wrong path here.
How do other people build their Sass for release?