Disable CGO to work around alpine/musl restrictions
describes a very similar issue. One solution is to disable the C language binding (see also https://golang.org/cmd/cgo/).
@@ -5,7 +5,7 @@ RUN apk add -U make gcc musl-dev ncurses git
ADD . /go/src/github.com/gopasspw/gopass
WORKDIR /go/src/github.com/gopasspw/gopass
-RUN TERM=vt100 make install
+RUN CGO_ENABLED=0 TERM=vt100 make install
FROM alpine:3.7
RUN apk add -U git gnupg
