Public Repository

Last pushed: 2 years ago
Short Description
ontouchstart/rpi-go
Full Description

github

Dockerfile

FROM ontouchstart/rpi-base
MAINTAINER Sam Liu <ontouchstart@gmail.com>

ENV GOROOT /go
ENV GOBIN $GOROOT/bin
ENV PATH $GOBIN:$PATH
ENV GOPATH /home

ENV HOME /home
WORKDIR /home

RUN git clone https://github.com/golang/go.git /go
RUN cd /go/src && git checkout release-branch.go1.4
RUN cd /go/src && ./all.bash

RUN go version
RUN go env

Example

root@jessie-rpi:~# docker run --rm -it ontouchstart/rpi-go go version
go version go1.4.2 linux/arm
root@jessie-rpi:~# docker run --rm -it ontouchstart/rpi-go go env
GOARCH="arm"
GOBIN="/go/bin"
GOCHAR="5"
GOEXE=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home"
GORACE=""
GOROOT="/go"
GOTOOLDIR="/go/pkg/tool/linux_arm"
CC="gcc"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
Docker Pull Command
Owner
ontouchstart

Comments (0)