nowfound

AI · February 13, 2025

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 · ▲120

    Distroless 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 · ▲91

    Analyze Docker images size. Contribute to remorses/docker-phobia development by creating an account on GitHub.

  • Building better base images2025 · github.com · ▲38

    This 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 · ▲35

    Declaratively manage images built from a set of Dockerfiles - jbergknoff/Dockerfiler

  • DockerDiet — Docker Image OptimizerMay 2026 · docker-diet.vercel.app · ▲2

    Paste your Dockerfile. Get an optimized one back in seconds.

  • Container DietNov 2025 · k1lgor.github.io · ▲105

    Slim down your Docker images with AI-powered sass. 🐳💅

More ai this month

the category →
  • Video model that turns script into viral social media videos

    AI · 19d ago · spira.ai

  • The browser where Claude Code and Codex work beside you

    AI · 19d ago · rill.love

  • Kolibri is Aleph Alpha

    AI · 21d ago · tej.as

  • Paintings by AI models: programs run through a simulation of oil paint.

    AI · 22d ago · stillwet.art

  • Beam.win▲379

    Run AI agents on one Mac and use its windows on another

    AI · 5d ago · beam.win

  • Route 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 →
  • Beautiful screen recordings with instant shareable links

    Growth · 2025 · screen.studio

  • Tana▲1,665

    Put your notes to work with voice and AI

    AI · 2025 · tana.inc

  • 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

  • Tanka▲1,410

    AI Messenger with smart reply & long term memory for teams

    AI · 2025 · tanka.ai

  • Tool Finder▲1,327

    Your shortcut to better software

    AI · 2025 · toolfinder.com

  • 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