How to lower image size
poshenloh-dev
TRIALOP

2 years ago

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?

7 Replies

poshenloh-dev
TRIALOP

2 years ago

e161a457-8a38-4ce1-9544-c89f51f52edd


2 years ago

you would want to look into writing a dockerfile with a final image


poshenloh-dev
TRIALOP

2 years ago

gotcha.


maddsua
HOBBY

2 years ago

2-stage builds to rescue


2 years ago

maybe even 3 if you want


poshenloh-dev
TRIALOP

2 years ago

maybe even 3 if you want
haha yep. build->installer->runner. publish time is 4 seconds now


2 years ago

awesome!


Loading...