Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use multi-stage Docker build to handle node-postal dependencies
The [node-postal](https://github.com/openvenues/node-postal) NPM module requires a full C++ compiler toolchain _and_ python3 to install. After pelias/docker-baseimage#23 and pelias/docker-libpostal_baseimage#5 this toolchain is no longer present in our Docker baseimage. This PR uses a Docker multi-stage build to build _just_ the NPM modules required by the interpolation service while a C++ toolchain is present. The `node_modules` directory can then be copied to the final image without needing a C++ toolchain or python to be present. In addition to saving some space in the final image, this fixes issues people were having with our Docker images, since `node-postal` wasn't functional. Fixes pelias/docker#271
- Loading branch information