A Libsass compiler
alpine base imageWhen pulling or running an this container you can select which version of Libsass you want to use.
The current stable release
The current beta release if it's newer than the current stable release. Otherwise this is the same as stable.
The currently tagged versions are:
The image has the sassc binary as its entrypoint, so it should be invoked with whatever arguments you would normally pass to sassc. For example,
$ cat file.scss
$blue: #00f;
.foo { color: $blue; }
$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) xzyfer/docker-libsass:<version> file.scss
.foo {
color: #00f; }
You may also want to create a bash alias:
alias sassc="docker run -it --rm -v \$(pwd):\$(pwd) -w \$(pwd) xzyfer/docker-libsass:<version>"
so you will be able to simply run
$ sassc file.scss
.foo {
color: #00f; }
The binary is compiled as part of the Dockerfile, and the build tools are subsequently removed.
This was originally forked from bergknoff/Dockerfile
docker pull xzyfer/docker-libsass:latest