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)
- Host: GitHub
- URL: https://github.com/pocesar/docker-node-alpine-gyp
- Owner: pocesar
- License: mit
- Created: 2016-11-28T01:34:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-07T02:41:58.000Z (over 9 years ago)
- Last Synced: 2024-10-18T06:28:28.615Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

```
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