How to lower image size
Hey folks, I am deploying a bundled backend app, but the image size is 3 gigs. This takes ages to upload. The bundle itself is around 20mb. How can I specify that only the bundle file needs to be included in the docker image?
8 Replies
Project ID:
e161a457-8a38-4ce1-9544-c89f51f52edd
e161a457-8a38-4ce1-9544-c89f51f52edd
Solution
you would want to look into writing a dockerfile with a final image
gotcha.
2-stage builds to rescue
maybe even 3 if you want
maybe even 3 if you wanthaha yep. build->installer->runner. publish time is 4 seconds now
awesome!