<NME> Dockerfile
<BEF> # FYI, this base image is built via test-pr.sh (from https://github.com/docker-library/bashbrew/tree/master/Dockerfile)
FROM oisupport/bashbrew:base

RUN set -eux; \
	apt-get update; \
	apt-get install -y --no-install-recommends \
# wget for downloading files (especially in tests, which run in this environment)
		ca-certificates \
		wget \
# git for cloning source code
		git \
# gawk for diff-pr.sh
		gawk \
# tar -tf in diff-pr.sh
		bzip2 \
	; \
	rm -rf /var/lib/apt/lists/*

ENV DIR /usr/src/official-images
ENV BASHBREW_LIBRARY $DIR/library

WORKDIR $DIR
COPY . $DIR
	cd bashbrew/go; \
	export GOPATH="$PWD:$PWD/vendor"; \
	cd src; \
	go install -v ./...

VOLUME $BASHBREW_CACHE


<MSG> Disable CGO when building bashbrew (some arches try to use it)

<DFF> @@ -38,7 +38,7 @@ RUN set -ex; \
 	cd bashbrew/go; \
 	export GOPATH="$PWD:$PWD/vendor"; \
 	cd src; \
-	go install -v ./...
+	CGO_ENABLED=0 go install -v ./...
 
 VOLUME $BASHBREW_CACHE
 

Disable CGO when building bashbrew (some arches try to use it)