Image prepared for running Elixir Phoenix with Dart
715
We're running Elixir Phoenix on ARM64 AWS Graviton processors. As a Dart compiler we're using this library: https://github.com/CargoSense/dart_sass
Unfortunately, it won't work with ARM based systems other than macOS.
To be able to configure path for custom builds of Dart and Sass, you have to enforce direct download from the git main branch.
In your mix.exs add:
{:dart_sass, git: "https://github.com/CargoSense/dart_sass", runtime: Mix.env() == :dev},
in the config.exs, specify paths for the Dart and Sass as environment variables:
config :dart_sass,
sass_path: System.get_env("MIX_SASS_PATH"),
dart_path: System.get_env("MIX_SASS_DART_PATH"),
You can preview dart and sass location using these commands:
which dart
which sass
As for the latest version of this image, these are default locations where sass and dart are installed:
This build is extending the official Elixir Docker image https://hub.docker.com/_/elixir
Current versions:
Content type
Image
Digest
Size
589.7 MB
Last updated
over 4 years ago
docker pull lucidmodules/phoenix-dart