forked from sourcegraph/go-vcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 772 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# A Dockerfile that tries to simulate running in Travis CI, to make
# debugging test failures easier.
FROM ubuntu:12.04
RUN apt-get update -q
RUN apt-get install -qq software-properties-common python-software-properties
RUN add-apt-repository -y ppa:mercurial-ppa/releases
RUN apt-get update -q
RUN apt-get install -qq curl git mercurial
RUN apt-get install -qq python-setuptools
RUN easy_install python-hglib
# Install Go
RUN curl -Ls https://golang.org/dl/go1.4.linux-amd64.tar.gz | tar -C /usr/local -xz
ENV PATH /usr/local/go/bin:$PATH
ENV GOBIN /usr/local/bin
ENV GOPATH /opt
ADD . /opt/src/sourcegraph.com/sourcegraph/go-vcs
WORKDIR /opt/src/sourcegraph.com/sourcegraph/go-vcs
RUN go get -v -t -d ./...
CMD ["test", "./..."]
ENTRYPOINT ["/usr/local/go/bin/go"]