<gh_stars>0
## recipe to cross-compile go programs for PC-104 using gccgo
from debian:stretch
maintainer <NAME> <EMAIL>

run mkdir -p /go/src

run apt-get update -y
run apt-get install -y git golang
run apt-get install -y gccgo-multilib libc6-dev-i386

run useradd lsst
user lsst

env GOPATH /go
env GOARCH 386
env GO386  387

ENTRYPOINT ["go", "get", "-compiler=gccgo", "-gccgoflags='-static-libgo'"]
CMD ["-v", "github.com/go-lsst/fcs-lpc-bench"]
