Using Docker with nodejs with node-gyp dependencies
问题 I'm planning to use Docker to deploy a node.js app. The app has several dependencies that require node-gyp. Node-gyp builds these modules (e.g. canvas, lwip, qrcode) against compiled libraries on the delivery platform, and in my experience these builds can be highly dependent on the o/s version and libraries installed, and they often break a simple npm install . So is building my Dockerfile FROM node:version the correct approach? This seems to be the approach shown in every Docker/Node