The host copy doesn't have to go along: exclude it from the build context, then install from the lockfile inside the image. The whole ecosystem can stay home.
I work on a project with Java and OMFG. It can take like 3 minutes to pull an image from ECR. When you bring up image size it always like that’s an infrastructure optimization and we don’t have time we are on features.
154
u/DiamondDramatic9551 1d ago edited 1d ago
What do you mean I have 800gb of unused docker images laying around?
101
u/idimetrix 1d ago
Seven layers of base image and the actual app is a 4 KB Python script.
35
u/poetic_dwarf 1d ago
Never thought my mama was a docker image
23
u/com-plec-city 1d ago
Docker is a fantastic solution and also a crime against efficiency.
"I'll just deploy MY ENTIRE FUCKING MACHINE"
17
u/sphericalhors 1d ago
Reminds me of times when we were releasing a 28Gb image.
62
u/purbub 1d ago
I doubt it’s heavier than my node_modules
14
u/R3DDY-on-R3DDYt 1d ago
omg, today i needed to pull in ffmpeg as a dependency
12
u/bigorangemachine 1d ago
Try ollama models and weights
I got like 750 gigs of ollama models and torch weights
5
u/AnnoyedVelociraptor 1d ago
Team `FROM scratch` here. Using musl, 1 binary.
9
u/Keyan_Farlander7 1d ago
Node_modules entered chat
4
u/ilnarildarovuch 1d ago edited 1d ago
Haha, jokes on you, i don't use docker!
6
u/yodzi 1d ago
node_modules folder so big its not even can be placed on that picture
3
u/ynnnnaD 1d ago
Node modules is the second singularity surprise secreted securely inside.
5
u/-Kerrigan- 1d ago
That's because I included a compressed jpeg of your momma in my docker image
2
u/redblack_tree 1d ago
If you have the opportunity to move your "local" docker to a separate VM... don't.
My docker VM is like a galactic graveyard, you can trace the software development history through the containers there.
2
u/MuadDibMelange 1d ago
OrbStack has entered the chat.
2
u/surykum36 1d ago
My SSD just entered a black hole🫠
2
u/leropo00 16h ago
Your docker image is so fat, it has other Docker image orbiting it
2
u/Hinjin 1d ago
You forgot your momma
1
u/LovelyWhether 1d ago
oh, so true!
1
u/vpn_unlimited_app 1d ago
docker system prune is the only time I feel like I found money in an old coat.
1
u/Traditional-Total448 1d ago
node modules: "you underestimate my power"
1
u/ApprehensiveStand456 1d ago
I work on a project with Java and OMFG. It can take like 3 minutes to pull an image from ECR. When you bring up image size it always like that’s an infrastructure optimization and we don’t have time we are on features.
1
u/xinwei_97 1d ago
The image is so big
docker pullis mutual.1
u/facebrocolis 1h ago
CorelDRAW files