-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Greetings,
First off, thank you for this buildpack. We're currently exploring deploys that can target both Heroku and a Docker platform and this seems like a good fit.
One area that we are having an issue with is image size. When running pack build, the resulting Docker image is gigabytes bigger than trying to build this directly with a Dockerfile. While exec'ing into the final image, we've discovered that /layers/heroku_nodejs-yarn/deps/cache contains the cached Nodejs modules from the yarn install which, for our app, is over 1.5 gigabytes in size. Most likely due to my limited understanding, I've tried to get around this by using the flag --publish along with --cache-image but the final app image still contains all the saved zip file data. Reading docs for the build process, it is not obvious if there's a workaround for this behavior. Is it possible to limit the heroku/nodejs-yarn:deps layer to the cache image? Or, if this isn't the right place to ask, do you have a recommendation where I should direct this question? Thank you for your time.