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