forked from sourcegraph/srclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (14 loc) · 815 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:14.04
RUN apt-get update -qq
RUN apt-get install -qq golang build-essential git mercurial
ENV GOPATH /srclib
ENV PATH /srclib/bin:$PATH
ADD . /srclib/src/sourcegraph.com/sourcegraph/srclib/
RUN go get -v sourcegraph.com/sourcegraph/srclib/...
RUN go install sourcegraph.com/sourcegraph/srclib/cmd/src
RUN go get -v sourcegraph.com/sourcegraph/srclib-go
RUN cd /srclib/src/sourcegraph.com/sourcegraph/srclib && git clone https://sourcegraph.com/sourcegraph/srclib-javascript
RUN mkdir -p /root/.srclib/sourcegraph.com/sourcegraph
RUN ln -rs /srclib/src/sourcegraph.com/sourcegraph/srclib-go /root/.srclib/sourcegraph.com/sourcegraph/srclib-go
RUN ln -rs /srclib/src/sourcegraph.com/sourcegraph/srclib-javascript /root/.srclib/sourcegraph.com/sourcegraph/srclib-javascript
ENTRYPOINT /srclib/bin/src