Public Repository

Last pushed: 2 years ago
Short Description
A Ruby Sass executable
Full Description

docker-ruby-sass

A Sass compiler

  • built on top of alpine base image
  • ~24 MB in size

Versions

When pulling or running an this container you can select which version of Ruby Sass you want to use. The currently supported versions are:

  • 3.2
  • 3.3
  • 3.4

Usage

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 Command
Owner
xzyfer

Comments (0)