Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (13 sloc) 562 Bytes
FROM golang
# Install VCS tools to support "go get" commands and install gcc.
RUN apt-get update -qqy && apt-get install -qqy git mercurial subversion gcc
# We blank out the GOPATH because the base image sets it, and
# if the user of this build step does *not* set it, we want to
# explore other options for workspace derivation.
ENV GOPATH=
RUN mkdir /builder
COPY go_workspace.go prepare_workspace.inc /builder/
COPY go.bash /builder/bin/
ENV PATH=/builder/bin:$PATH
RUN go build -o /builder/go_workspace /builder/go_workspace.go
ENTRYPOINT ["go.bash"]
You can’t perform that action at this time.