Dockershrink – AI Assistant to reduce the size of Docker images
For the past few months, I've been hacking around a project I call Dockershrink. It automates a simple task: Take a Dockerfile and optimize its code with the goal of reducing the size of the final Docker image. People don't realize that we can apply some very basic techniques to reduce, for eg, a 2GB image down to just ~100MB: - Multistage builds with light-weight base image for final stage - Remove unused dependencies - Optimizations specific to the tech stack And I feel like I've already done this optimization for my personal projects and backend apps at my job(s) a couple of times. The…
Dockershrink – AI Assistant to reduce the size of Docker images launched on February 13, 2025 with 11 votes, #1,584 of 5,999 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 1 year on.
In plain words
Dockershrink is an AI tool that automatically optimizes Dockerfiles to reduce Docker image sizes. It uses GPT-4o to apply techniques like multistage builds, lightweight base images, dependency removal, and stack-specific optimizations—shrinking images from gigabytes to megabytes. Currently supporting Node.js projects, it can run locally and offers more targeted optimization than general-purpose language models or code assistants. The tool is designed for developers managing backend applications and personal projects who want to reduce image storage and deployment sizes.
written from the facts on this page · September 2026
From the sources
AI Assistant that reduces the size of your application's Docker Image - duaraghav8/dockershrink
Dockershrink can automatically apply techniques like Multi-Stage builds, switching to Lighter base images like alpine and running dependency checks. PLUS a lot more is on the roadmap 🚀 You can provide your feedback by creating an Issue in this repository. Every org using containers in development or production environments understands the pain of managing hundreds or even thousands of bloated Docker images in their infrastructure. High data storage and transfer costs, long build times, underprodctive developers - we've seen it all. The issue becomes even more painful and costly with interpreted languages such as Nodejs & Python. Apps written in these languages need to pack the interpreters…from github.com
In the maker’s words, at launch
For the past few months, I've been hacking around a project I call Dockershrink. It automates a simple task: Take a Dockerfile and optimize its code with the goal of reducing the size of the final Docker image. People don't realize that we can apply some very basic techniques to reduce, for eg, a 2GB image down to…
Does a similar job
all alternatives →
Smallest Node.js Docker images2018 · github.com · ▲120Distroless Node.js Docker Images. Contribute to astefanutti/scratch-node development by creating an account on GitHub.
Docker-phobia: Analyze Docker image size with a treemap2024 · github.com · ▲91Analyze Docker images size. Contribute to remorses/docker-phobia development by creating an account on GitHub.
Building better base images2025 · github.com · ▲38This project addresses the inefficiencies of traditional Dockerfile-based container builds where each customization layer creates storage bloat through duplicate dependencies from repeated apt-get install commands, network inefficiency from redundant package downloads across different images, and slow iteration cycles requiring full rebuilds of all previous steps. Our solution enables building minimal base images from scratch using debootstrap that precisely include only required components in the initial build, while allowing creation of specialized variants (Java, Kafka, etc.) from these…
Dockerfiler: declarative management of images built from Dockerfiles2020 · github.com · ▲35Declaratively manage images built from a set of Dockerfiles - jbergknoff/Dockerfiler
DockerDiet — Docker Image OptimizerMay 2026 · docker-diet.vercel.app · ▲2Paste your Dockerfile. Get an optimized one back in seconds.
Container DietNov 2025 · k1lgor.github.io · ▲105Slim down your Docker images with AI-powered sass. 🐳💅
More ai this month
the category →



Paintings by AI models: programs run through a simulation of oil paint.
AI · 22d ago · stillwet.art

FastRouter.ai▲364Route requests to the right LLM for cost, latency & quality
AI · 23d ago · fastrouter.ai
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, February 2025
the whole month →
Screen Studio 3.0▲1,832Beautiful screen recordings with instant shareable links
Growth · 2025 · screen.studio

- IG
I was at FB/Meta from late 2013 to early 2023, mostly working in the compiler/runtime spaces. I got hit in the spring 2023 layoff wave. I immediately started making games in my newfound free time (a lifelong interest, and I even worked in AA(A?) back ca. ~2000), and in October 2023 I stumbled upon the idea of a roguelike pachinko/plinko game inspired by Luck Be A Landlord. Things snowballed quickly, I started talking to publishers, then worked like crazy through all of 2024, almost the hardest I've ever worked in my career, and launched the game in December 2024. It's sold…
Work · 2025



i wanted to change the habit of reaching for my phone in the morning and doomscrolling away an hour so i built an app to help me. now i have to literally touch grass before accessing my most distracting apps the app is built in swiftui, uses the screen time apis provided by apple and google vision to recognise grass or not i'd love to get your thoughts on the concept.
Life & fun · 2025 · touchgrass.now