Sign inSign up

orianna/libsass

By orianna

•Updated about 8 years ago

Docker image for Sass/Scss compiler (dev environment) using Sassc and libsass.

Image
0

287

orianna/libsass repository overview

Docker image for Sass/Scss⁠ compiler (development environment) using Sassc and libsass based on alpine. Warning: no --watch flag in libsass.

Please check the orianna-zzo/dockerfile-rep⁠ for the Dockerfile and more building details.

⁠Get the Image

The compressed size of the image on Docker Hub is only 4MB. You can simply pull the latest image by:

$ docker pull orianna/libsass-docker

Check the image, and this image is only 8.76MB now:

$ docker images

Ref: The dockerfile refers to this docker image jbergknoff/sass⁠

⁠Run the Container

$ docker run --name my-libsass -v $(pwd):/sass -v $(pwd)/css:/output --rm -it orianna/libsass:latest SOURCE.scss DIST.css

To simplify it, you can config alias in ~/.profile as follows:

alias libsass="docker run -it --rm -v \$(pwd):/sass -v \$(pwd):/output orianna/libsass:latest"

With this alias, you can use the libsass image as if you use sass command locally:

$ libsass SOURCE.scss DIST.css    # sass SOURCE.scss DIST.css
$ libsass -v                      # sass -v
$ libsass -h                      # sass -h

If you want to use shell in the container interactively, you can enter:

$ docker run --name my-libsass -v $(pwd):/sass -v $(pwd)/css:/output --rm -it --entrypoint sh orianna/libsass:latest

⁠Version

⁠v3.5.2:

sassc: 3.4.8-6-g43c4 libsass: 3.5.2-75-gedd2 sass2scss: 1.1.1 sass: 3.5

Tag summary

Content type

Image

Digest

Size

3.6 MB

Last updated

about 8 years ago

docker pull orianna/libsass