Created
October 30, 2014 16:56
-
-
Save kelseyhightower/4376fb407d7fe745792d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2014 The Go Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style | |
| # license that can be found in the LICENSE file. | |
| # Commit Watcher image: gobuilders/commitwatcher | |
| FROM ubuntu:trusty | |
| MAINTAINER golang-dev <[email protected]> | |
| RUN apt-get update -y && apt-get install --no-install-recommends -y -q curl build-essential ca-certificates git mercurial bzr | |
| RUN mkdir /goroot && curl https://storage.googleapis.com/golang/go1.3.2.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1 | |
| RUN mkdir /gopath | |
| ENV GOROOT /goroot | |
| ENV GOPATH /gopath | |
| ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin | |
| RUN mkdir -p /usr/local/bin | |
| RUN mkdir -p $GOPATH/src/code.google.com/p | |
| RUN hg clone https://code.google.com/p/go.tools $GOPATH/src/code.google.com/p/go.tools | |
| WORKDIR $GOPATH/src/code.google.com/p/go.tools/dashboard/watcher | |
| RUN go build -o /usr/local/bin/watcher . | |
| ENTRYPOINT ["/usr/local/bin/watcher"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment