A Sass compiler
alpine base imageWhen pulling or running an this container you can select which version of Ruby Sass you want to use. The currently supported versions are:
The image has the scss binary as its entrypoint, so it should be invoked with whatever arguments you would normally pass to scss. For example,
$ cat file.scss
$blue: #00f;
.foo { color: $blue; }
$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) xzyfer/docker-ruby-sass:<version> file.scss
.foo {
color: #00f; }
You may also want to create a bash alias:
alias scss="docker run -it --rm -v \$(pwd):\$(pwd) -w \$(pwd) xzyfer/docker-ruby-sass:3.4"
so you will be able to simply run
$ scss file.scss
.foo {
color: #00f; }
docker pull xzyfer/docker-ruby-sass:3.2