An open API service indexing awesome lists of open source software.

https://github.com/pocesar/docker-node-alpine-gyp

Node alpine container for rebuilding stuff (when on windows host)
https://github.com/pocesar/docker-node-alpine-gyp

Last synced: about 1 year ago
JSON representation

Node alpine container for rebuilding stuff (when on windows host)

Awesome Lists containing this project

README

          

# docker-node-alpine-gyp

Node alpine container for rebuilding stuff (when on windows host)

# Why?

When you `npm install` some module that has native bindings, it'll install the host version of the module.
This container helps with overwriting usually the `build` directory with a node alpine compatible native module.

In the example is argon2, if you try to use Windows Host and Docker Machine, it's a no-go

![console](https://raw.github.com/pocesar/docker-node-alpine-gyp/master/argon2.png)

```
docker run -v /virtualbox-mount-from-windows/project/node_modules/argon2:/usr/src/app pocesar/node-alpine-gyp:latest
```

# Usage

```
docker run -v /your/failing/node_modules/package/:/usr/src/app pocesar/node-alpine-gyp:6
# docker run -v /your/failing/node_modules/package/:/usr/src/app pocesar/node-alpine-gyp:7
```

# License

MIT