121

As the title says. I build containers for my platforms/clients/myself-selfhosted@home and you would not believe how much smaller you can get your images. Here's an example when slimming one of my images:

cmd=build info=results status='MINIFIED' by='18.97X' size.original='1.0 GB' size.optimized='55 MB' 

That's a Python app that I didn't have to do multi-staged build with docker because of the Slim command. And it's a working version of that app that I'm using today.

Same for one of my flutter apps that I thought it was as small as it could be:

cmd=build info=results status='MINIFIED' by='1.98X' size.original='66 MB' size.optimized='33 MB'

TLDR: slim your container images!! https://github.com/slimtoolkit/slim

you are viewing a single comment's thread
view the rest of the comments
[-] Kangie@lemmy.srcfiles.zip 8 points 1 year ago

The better solution is to build containers without all of that bloat in the first place. I did up a post on that subject a little while ago.

[-] lebigz@feddit.de 0 points 1 year ago

You link to https://lemmy.srcfiles.zip/post/3841 which does not seem to have anything to do with containers, but is about townscaping

[-] Kangie@lemmy.srcfiles.zip 1 points 1 year ago* (last edited 1 year ago)

I was wrong on the internet; apparently with certain Lemmy apps this directs to a completely different website.

~~What crack are you smoking? It's literally a post about "building lightweight hardened containers"?~~

~~Edit: wtf is townscaping? Is that like manscaping for a whole town? Or is it just regular landscaping.~~

[-] lebigz@feddit.de 2 points 1 year ago

Suuuper weird, when I click the link from the browser, I get to the correct page, but not in the Connect App. Then it's some blog about old houses and nice places in towns

[-] Kangie@lemmy.srcfiles.zip 1 points 1 year ago

Ok, that is weird and I retract my criticism. Just because I don't see it doesn't mean something unusual isn't happening there!

load more comments (3 replies)
this post was submitted on 14 Jul 2023
121 points (93.5% liked)

Selfhosted

40198 readers
429 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS