Add Dockerfile as a template for examples
alexellis opened this issue · 2 comments
alexellis commented
- 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
alexellis commented
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.
alexellis commented
Sample added: https://github.com/alexellis/blinkt_go_examples/blob/master/progress/Dockerfile
See also: @rgee0