# Docker Images : Part II - Details Specific To Different Languages

DevFeed: [Docker Images : Part II - Details Specific To Different Languages](<https://devfeed.tech/articles/docker-images-part-ii-details-specific-to-different-languages-22157.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2020/02/docker-images-part2-details-specific-to-different-languages.html>)

Published: 2020-02-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Docker](<https://devfeed.tech/topics/docker.md>), [docker images](<https://devfeed.tech/topics/docker-images.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Go](<https://devfeed.tech/topics/go.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-images](<https://devfeed.tech/tags/docker-images.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [languages](<https://devfeed.tech/tags/languages.md>), [programming](<https://devfeed.tech/tags/programming.md>)

## AI overview

The second part of a series on reducing Docker image size explains how Go binaries can be dynamically linked when they use system libraries through cgo. It shows that disabling cgo with CGO_ENABLED=0 produces a static binary that can run without those libraries, and introduces the netgo build tag for selecting Go's native network implementation.

## Source excerpt

Series Index Reducing Image Size Details Specific To Different Languages Going Farther To Reduce Image Size Introduction In the first part, we introduced multi-stage builds, static and dynamic linking, and briefly mentioned Alpine. In this second part, we are going to dive into some details specific to Go. Then we will talk more about Alpine, because it's worth it; and finally we will see how things play out with other languages like Java, Node, Python, Ruby, and Rust.