github.com/april1989/origin-go-tools@v0.0.32/cmd/getgo/Dockerfile (about)

     1  FROM golang:latest
     2  
     3  ENV SHELL /bin/bash
     4  ENV HOME /root
     5  WORKDIR $HOME
     6  
     7  COPY . /go/src/github.com/april1989/origin-go-tools/cmd/getgo
     8  
     9  RUN ( \
    10  		cd /go/src/github.com/april1989/origin-go-tools/cmd/getgo \
    11  		&& go build \
    12  		&& mv getgo /usr/local/bin/getgo \
    13  	)
    14  
    15  # undo the adding of GOPATH to env for golibexec_testing
    16  ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    17  ENV GOPATH ""
    18  
    19  # delete /go and /usr/local/go for golibexec_testing
    20  RUN rm -rf /go /usr/local/go