SASS/SCSS compiler
alpine base imageThe image has the sass binary as its entrypoint, so it should be invoked with whatever arguments you would normally pass to sass. For example,
$ cat file.scss
$blue: #00f;
.thing { color: $blue; }
$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) jbergknoff/sass file.scss
.thing {
color: #00f; }
You may also want to create a bash alias:
alias sass="docker run -it --rm -v \$(pwd):\$(pwd) -w \$(pwd) jbergknoff/sass"
so you will be able to simply run
$ sass file.scss
.thing {
color: #00f; }
The binary is compiled as part of the Dockerfile, and the build tools are subsequently removed.
Content type
Image
Digest
sha256:18403a538…
Size
3.2 MB
Last updated
over 11 years ago
docker pull jbergknoff/sass