github.com/ojongerius/docker@v1.11.2/hack/make/.ensure-httpserver (about) 1 #!/bin/bash 2 set -e 3 4 # Build a Go static web server on top of busybox image 5 # and compile it for target daemon 6 7 dir="$DEST/httpserver" 8 mkdir -p "$dir" 9 ( 10 cd "$dir" 11 GOOS=${DOCKER_ENGINE_GOOS:="linux"} GOARCH=${DOCKER_ENGINE_GOARCH:="amd64"} CGO_ENABLED=0 go build -o httpserver github.com/docker/docker/contrib/httpserver 12 cp ../../../../contrib/httpserver/Dockerfile . 13 docker build -qt httpserver . > /dev/null 14 ) 15 rm -rf "$dir"