Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove nodejs autoinstrumentation dev dependencies from image (#2803)
The autoinstrumentation has several build-time dependencies which aren't necessary for the final image, like typescript. Comparison of builds without typescript, typescript + rimraf, and finally all dev dependencies: ``` $ docker image ls --format 'table {{.Repository}} {{.Tag}} {{.Size}}' autoinstrumentation-nodejs 60d37e1 272MB autoinstrumentation-nodejs no-ts 208MB autoinstrumentation-nodejs no-ts-rmrf 201MB autoinstrumentation-nodejs no-dev 200MB ``` We extend the existing `postcompile` script. After building into `build/workspace`, we `prune` to remove extraneous packages. Doing that requires the `package.json` in the build directory.
- Loading branch information