Sign inSign up

lucidmodules/phoenix-dart

By lucidmodules

•Updated over 4 years ago

Image prepared for running Elixir Phoenix with Dart

Image
0

715

lucidmodules/phoenix-dart repository overview

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:

  • /root/.pub-cache/bin/sass
  • /usr/lib/dart/bin/dart

This build is extending the official Elixir Docker image https://hub.docker.com/_/elixir⁠

Current versions:

  • ARG ELIXIR_VERSION=1.12.3
  • ARG DART_VERSION=2.15.1

Tag summary

Content type

Image

Digest

Size

589.7 MB

Last updated

over 4 years ago

docker pull lucidmodules/phoenix-dart