<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

# bash for running scripts
		bash \
# go for compiling bashbrew
		go

ENV GOPATH /go
ENV PATH $GOPATH/bin:$PATH

ENV GB_VERSION 0.4.1
RUN set -x \
	&& mkdir -p /go/src/github.com/constabulary \
	&& cd /go/src/github.com/constabulary \
	&& wget -qO- "https://github.com/constabulary/gb/archive/v${GB_VERSION}.tar.gz" \
		| tar -xz \
	&& mv gb-* gb \
	&& cd gb \
	&& go install -v ./...

ENV DIR /usr/src/official-images
ENV PATH $DIR/bashbrew/go/bin:$PATH

		bzip2 \
	; \
	rm -rf /var/lib/apt/lists/*

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

WORKDIR $DIR
WORKDIR $DIR
COPY . $DIR

RUN cd bashbrew/go && gb build

VOLUME $BASHBREW_CACHE


<MSG> Account for newer Alpine version

<DFF> @@ -4,21 +4,11 @@ RUN apk add --no-cache \
 # bash for running scripts
 		bash \
 # go for compiling bashbrew
-		go
+		go libc-dev
 
 ENV GOPATH /go
 ENV PATH $GOPATH/bin:$PATH
 
-ENV GB_VERSION 0.4.1
-RUN set -x \
-	&& mkdir -p /go/src/github.com/constabulary \
-	&& cd /go/src/github.com/constabulary \
-	&& wget -qO- "https://github.com/constabulary/gb/archive/v${GB_VERSION}.tar.gz" \
-		| tar -xz \
-	&& mv gb-* gb \
-	&& cd gb \
-	&& go install -v ./...
-
 ENV DIR /usr/src/official-images
 ENV PATH $DIR/bashbrew/go/bin:$PATH
 
@@ -33,7 +23,11 @@ RUN mkdir -p "$BASHBREW_CACHE" \
 WORKDIR $DIR
 COPY . $DIR
 
-RUN cd bashbrew/go && gb build
+RUN set -ex; \
+	cd bashbrew/go; \
+	export GOPATH="$PWD:$PWD/vendor"; \
+	cd src; \
+	go install -v ./...
 
 VOLUME $BASHBREW_CACHE
 

Account for newer Alpine version