TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Multi-Stage Docker Builds for Creating Tiny Go Images

4 pointsby transitorykrisabout 8 years ago

2 comments

awinter-pyabout 8 years ago
Holy crap, hadn&#x27;t heard of this. Sounds like it&#x27;s merged to master and coming down the pipe for 17.05. <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;userguide&#x2F;eng-image&#x2F;multistage-build&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;userguide&#x2F;eng-image&#x2F;multistag...</a><p>This solves a major pain point for many people working w&#x2F; dockerfiles.
评论 #14338529 未加载
tqhabout 8 years ago
For Go (as it is statically linked) you can use FROM SCRATCH. It&#x27;s faster, smaller, easier. <a href="https:&#x2F;&#x2F;blog.docker.com&#x2F;2016&#x2F;09&#x2F;docker-golang&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.docker.com&#x2F;2016&#x2F;09&#x2F;docker-golang&#x2F;</a>