TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Multi-Stage Docker Builds for Creating Tiny Go Images

4 点作者 transitorykris大约 8 年前

2 条评论

awinter-py大约 8 年前
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 未加载
tqh大约 8 年前
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>