frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

BuildKit: Docker's Hidden Gem That Can Build Almost Anything

https://tuananh.net/2026/02/25/buildkit-docker-hidden-gem/
39•jasonpeacock•3h ago

Comments

whalesalad•1h ago
Folks, please fix your AI generated ascii artwork that is way out of alignment. This is becoming so prevalent - instant AI tell.
craftkiller•1h ago
Are you on a phone? I loaded the article with both my phone and laptop. The ascii diagram was thoroughly distorted on my phone but it looked fine on my laptop.
whalesalad•1h ago
Firefox on a 27" display. Could be the font being used to render.
antonvs•4m ago
The only ASCII image I see on that page is actually a PNG:

https://tuananh.net/img/buildkit-llb.png

Maybe the page was changed? If you're just talking about the gaps between lines, that's just the line height in whatever source was used to render the image, which doesn't say much about AI either way.

unshavedyak•1h ago
I imagine it's not the AI then, but the site font/css/something. Seeing as it looks fine for me (Brave, Linux).
seneca•33m ago
I found it more jarring that they chose to use both Excalidraw and ascii art. What a strange choice.
tuananh•3m ago
the hugo theme requires an image thumbnail. i just find one and use it :D
moochmooch•1h ago
unfortunately, make is more well written software. I think ultimately Dockerfile was a failed iteration of Makefile. YAML & Dockerfile are poor interfaces for these types of applications.

The code first options are quite good these days, but you can get so far with make & other legacy tooling. Docker feels like a company looking to sell enterprise software first and foremost, not move the industry standard forward

great article tho!

craftkiller•1h ago
Along similar lines, when I was reading the article I was thinking "this just sounds like a slightly worse version of nix". Nix has the whole content addressed build DAG with caching, the intermediate language, and the ability to produce arbitrary outputs, but it is functional (100% of the inputs must be accounted for in the hashes/lockfile, as opposed to Docker where you can run commands like `apk add firefox` which is pulling data from outside sources that can change from day to day, so two docker builds can end up with the same hash but different output, making it _not_ reproducible like the article falsely claims).
jasonpeacock•1h ago
You can network-jail your builds to prevent pulling from external repos and force the build environment to define/capture its inputs.
ricardobeat•47m ago
> so two docker builds can end up with the same hash but different output

The cache key includes the state of the filesystem so I don’t think that would ever be true.

Regardless, the purpose of the tool is to generate [layer] images to be reused, exactly to avoid the pitfalls of reproducible builds, isn’t it? In the context of the article, what makes builds reproducible is the shared cache.

xyzzy_plugh•12m ago
It's not reproducible then, it's simply cached. It's a valid approach but there's tradeoffs of course.
kccqzy•1h ago
Make is timestamp based. That is a thoroughly out-of-date approach only suitable for a single computer. You want distributed hash-based caching in the modern world.
bmitch3020•1h ago
I don't use buildkit for artifacts, but I do like to output images to an OCI Layout so that I can finish some local checks and updates before pushing the image to a registry.

But the real hidden power of buildkit is the ability to swap out the Dockerfile parser. If you want to see that in action, look at this Dockerfile (yes, that's yaml) used for one of their hardened images: https://github.com/docker-hardened-images/catalog/blob/main/...

tuananh•1h ago
i did include a repo example on how to create custom frontend as well https://github.com/tuananh/apkbuild
verdverm•32m ago
BuildKit also comes with a lot of pain. Dagger (a set of great interfaces to BuildKit in many languages) is working to remove it. Even their BuildKit maintainers think it's a good idea.

BuildKit is very cool tech, but painful to run at volume

New AirSnitch attack breaks Wi-Fi encryption in homes, offices, and enterprises

https://arstechnica.com/security/2026/02/new-airsnitch-attack-breaks-wi-fi-encryption-in-homes-of...
99•DamnInteresting•1h ago•41 comments

Nano Banana 2: Google's latest AI image generation model

https://blog.google/innovation-and-ai/technology/ai/nano-banana-2/
146•davidbarker•1h ago•138 comments

Show HN: Terminal Phone – E2EE Walkie Talkie from the Command Line

https://gitlab.com/here_forawhile/terminalphone
219•smalltorch•6h ago•54 comments

Open Source Endowment – new funding source for open source maintainers

https://endowment.dev/
27•kvinogradov•1h ago•8 comments

Anthropic ditches its core safety promise

https://www.cnn.com/2026/02/25/tech/anthropic-safety-policy-change
440•motbus3•4h ago•237 comments

Bild AI (YC W25) Is Hiring Interns to Make Housing Affordable

https://www.workatastartup.com/jobs/80596
1•rooppal•13m ago

Google API keys weren't secrets, but then Gemini changed the rules

https://trufflesecurity.com/blog/google-api-keys-werent-secrets-but-then-gemini-changed-the-rules
1031•hiisthisthingon•21h ago•248 comments

BuildKit: Docker's Hidden Gem That Can Build Almost Anything

https://tuananh.net/2026/02/25/buildkit-docker-hidden-gem/
40•jasonpeacock•3h ago•17 comments

just-bash: Bash for Agents

https://github.com/vercel-labs/just-bash
45•tosh•3h ago•32 comments

Will vibe coding end like the maker movement?

https://read.technically.dev/p/vibe-coding-and-the-maker-movement
12•itunpredictable•1h ago•1 comments

Tell HN: YC companies scrape GitHub activity, send spam emails to users

394•miki123211•7h ago•133 comments

Jimi Hendrix was a systems engineer

https://spectrum.ieee.org/jimi-hendrix-systems-engineer
599•tintinnabula•20h ago•197 comments

Better to Skip a Year for Hardware Upgrades?

https://boilingsteam.com/poll-better-to-skip-a-year-for-pc-upgrades/
6•ekianjo•3d ago•0 comments

How AI skills are quietly automating my workday

https://medium.com/@ricardskrizanovskis/how-ai-skills-are-quietly-automating-my-workday-220a1b7b4707
16•rkrizanovskis•38m ago•7 comments

Those who can, teach history

https://www.historytoday.com/archive/making-history/those-who-can-teach-history
26•hhs•4d ago•25 comments

Banned in California

https://www.bannedincalifornia.org/
380•pie_flavor•17h ago•434 comments

Time Is Different

https://shkspr.mobi/blog/2026/02/this-time-is-different/
17•speckx•3h ago•11 comments

How will OpenAI compete?

https://www.ben-evans.com/benedictevans/2026/2/19/how-will-openai-compete-nkg2x
391•iamskeole•18h ago•540 comments

Ferret-UI Lite: Lessons from Building Small On-Device GUI Agents

https://machinelearning.apple.com/research/ferret-ui
16•CharlesW•4d ago•2 comments

In 2025, Meta paid an effective federal tax rate of 3.5%

https://bsky.app/profile/rbreich.bsky.social/post/3mfptlfeucn2i
156•doener•1h ago•95 comments

First Website (1992)

https://info.cern.ch
283•shrikaranhanda•18h ago•80 comments

A 26-Gram Butterfly-Inspired Robot Achieving Autonomous Tailless Flight

https://arxiv.org/abs/2602.06811
49•Terretta•4d ago•12 comments

Story of XZ Backdoor [video]

https://www.youtube.com/watch?v=aoag03mSuXQ
59•Ulf950•2h ago•19 comments

Windows 11 Notepad to support Markdown

https://blogs.windows.com/windows-insider/2026/01/21/notepad-and-paint-updates-begin-rolling-out-...
331•andreynering•23h ago•499 comments

Making MCP cheaper via CLI

https://kanyilmaz.me/2026/02/23/cli-vs-mcp.html
290•thellimist•20h ago•110 comments

Artist who “paints” portraits on glass by hitting it with a hammer

https://simonbergerart.com
228•cs702•4d ago•99 comments

Bus stop balancing is fast, cheap, and effective

https://worksinprogress.co/issue/the-united-states-needs-fewer-bus-stops/
404•surprisetalk•1d ago•584 comments

Writers and Their Day Jobs

https://lithub.com/the-work-behind-the-writing-on-writers-and-their-day-jobs/
74•simplegeek•4d ago•26 comments

Some silly Z3 scripts I wrote

https://www.hillelwayne.com/post/z3-examples/
23•azhenley•3d ago•4 comments

Fentanyl makeover: Core structural redesign could lead to safer pain medications

https://www.scripps.edu/news-and-events/press-room/2026/20260211-janda-molecule.html
51•littlexsparkee•4h ago•58 comments