# Precompiled sass binary for Node on Alpine Linux

Installing the node-sass module on Alpine Linux [requires full recompilation of the sass library](https://github.com/sass/node-sass/search?q=alpine&type=Issues) (requiring make, g++ and other build tools). This simple dockerfile uses [alpine-node](https://github.com/mhart/alpine-node) to pre-compile the bindings that can then be used when installing this library.

# Using the pre-compiled binaries


# Rebuilding 

Build the docker image:

```
docker build -t node-sass-builder .
```

Then copy the binary out of the image:

```
docker run -v /tmp/node-sass-releases:/releases node-sass-builder cp vendor/linux-x64-47/binding.node /releases/linux-x64-47_binding.node
```


# Precompiled sass binary for Node on Alpine Linux

Installing the node-sass module on Alpine Linux [requires full recompilation of the sass library](https://github.com/sass/node-sass/search?q=alpine&type=Issues) (requiring make, g++ and other build tools). This simple dockerfile uses [alpine-node](https://github.com/mhart/alpine-node) to pre-compile the bindings that can then be used when installing this library.

## Using the pre-compiled binaries

To use these pre-built binaries, use the SASS_BINARY parameters during node-sass installation: https://github.com/sass/node-sass/#binary-configuration-parameters

## Rebuilding 

Build the docker image and run against master:

```
docker build -t node-sass-builder . && docker run -v /tmp/node-sass-releases:/build node-sass-builder
```

This will leave the compiled artifact in the mounted volume (/tmp/node-sass-releases in the exampe above).

In most scenarios you would probably target a specific node-sass release, do this by providing the release tag to the build:


```
docker run -v /tmp/node-sass-releases:/build node-sass-builder v3.7.0
```


Update readme to match current configuration
Update readme to match current configuration
