Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-golang-rpi

Docker container for cross-compiling Go applications with cgo to
run on a Raspberry Pi (linux/arm).

I'm not using CC_FOR_TARGET because it currently prevents
you from building linux/amd64 applications on the same container. So you
should build using:

GOARCH=arm GOARM=7 \
CGO_ENABLED=1 \
CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ \
go build

You can include other cgo dependencies like so:

RUN apt-get -y install libusb-1.0-0-dev libusb-1.0-0-dev:armhf
Docker Pull Command
Owner
dcarley
Source Repository