R
Railway2mo ago
goob

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?
Solution:
you would want to look into writing a dockerfile with a final image
Jump to solution
8 Replies
Percy
Percy2mo ago
Project ID: e161a457-8a38-4ce1-9544-c89f51f52edd
goob
goob2mo ago
e161a457-8a38-4ce1-9544-c89f51f52edd
Solution
Brody
Brody2mo ago
you would want to look into writing a dockerfile with a final image
goob
goob2mo ago
gotcha.
maddsua
maddsua2mo ago
2-stage builds to rescue
Brody
Brody2mo ago
maybe even 3 if you want
goob
goob2mo ago
maybe even 3 if you want
haha yep. build->installer->runner. publish time is 4 seconds now
Brody
Brody2mo ago
awesome!
Want results from more Discord servers?
Add your server