alexellis/blinkt_go_examples

Add Dockerfile as a template for examples

alexellis opened this issue · 2 comments

  • Use alexellis2/golang-armhf:1.7.4
  • During RUN add the code and do go get
  • For the CMD run the binary

Mention that this needs to run as --privileged

Had some issues with armhf/alpine as a base image due to the lack of Glibc / stdlib and Gcc. These are needed for building with CGO for the WiringPi base library. Using resin/rpi-raspbian as a base would be easier.