Skip to content

Docker Image Size Doubled After Switching to aws-iot-device-sdk-v2 #525

Answered by bretambrose
mario-jerkovic asked this question in Q&A
Discussion options

You must be logged in to vote

We are looking into the best way to approach this for size-conscious users. Building the CRT yourself is one option, but after some additional discussion, it may be easier to instead delete all the un-needed native binaries after you've fully built your application, right before you package it up.

If you look in node_modules/aws-crt/dist/bin you'll see folders for each supported platform-arch combo. Deleting unneeded folders (based on your final runtime host) will save 1-4MB each, depending on the platform.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants