<p>Good example: <a href="https://github.com/GoogleContainerTools/skaffold/blob/master/examples/getting-started/Dockerfile" rel="nofollow">https://github.com/GoogleContainerTools/skaffold/blob/master/examples/getting-started/Dockerfile</a></p>
<p>I know that Golang application when deployed on docker could utilize scratch image to reduce container size. Why is there a need for alpine in this case?</p>
<hr/>**评论:**<br/><br/>darxkies: <pre><p>The Alpine overhead is small. Less than 5MB? With Alpine you can start a shell in the container for diagnoses. And it also includes the files to verify SSL certificates for HTTPS and so on.</p></pre>qwert_dev: <pre><p>they do this so the go tools and unix utilities are present to aid in debugging</p></pre>
[Newbie] Why do google's example services deploy Go applications on alpine instead of scratch docker image?
agolangf · · 529 次点击这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传