Public Repository

Last pushed: 2 years ago
Short Description
golang for Raspbian (armv7l)
Full Description

kenntwasde/raspi-golang

see Dockerfile on github

Original

google/golang is a docker base image that bundles the latest version of golang installed from golang.org.

It serves as a base for the google/golang-runtime image.

Notes

GOROOT is set to /goroot
GOPATH is set to /gopath

Usage

  • Create a Dockerfile in your golang application directory with the following content:

      FROM kenntwasde/raspi-golang
    
      WORKDIR /gopath/src/app
      ADD . /gopath/src/app/
      RUN go get app
    
      CMD []
      ENTRYPOINT ["/gopath/bin/app"]
    
  • Run the following command in your application directory:

      docker build -t my/app .
    
Docker Pull Command
Owner
kenntwasde