github.com/shiroyuki/docker@v1.9.0/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=linux GOARCH=amd64 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"