Exhibit 2949 · Website
Docker Blog: Containerize Your Go Developer Environment – Part 1
Docker Blog
Above we have two different stages for Unix-like OSes (bin-unix) and for Windows (bin-windows). We then add aliases for Linux (bin-linux) and macOS (bin-darwin). This allows us to make a dynamic target (bin) that depends on the TARGETOS variable and is automatically set by the docker build platform flag.