Sign inSign up

pocesar/node-alpine-gyp

By pocesar

Updated over 9 years ago

Node alpine container for building stuff (when on windows)

Image
1

1.6K

pocesar/node-alpine-gyp repository overview

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

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

Tag summary

Content type

Image

Digest

Size

94.6 MB

Last updated

over 9 years ago

docker pull pocesar/node-alpine-gyp