2014-02-13 18:56:51 +00:00
|
|
|
FROM ubuntu:13.10
|
|
|
|
|
|
|
|
MAINTAINER Drone.io Team
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y wget gcc make g++ build-essential ca-certificates mercurial git bzr libsqlite3-dev sqlite3
|
|
|
|
|
|
|
|
RUN wget https://go.googlecode.com/files/go1.2.src.tar.gz && tar zxvf go1.2.src.tar.gz && cd go/src && ./make.bash
|
|
|
|
|
|
|
|
ENV PATH $PATH:/go/bin:/gocode/bin
|
|
|
|
ENV GOPATH /gocode
|
|
|
|
|
2014-08-08 13:14:21 +00:00
|
|
|
RUN go get github.com/tools/godep
|
|
|
|
|
2014-02-13 18:56:51 +00:00
|
|
|
RUN mkdir -p /gocode/src/github.com/drone
|
|
|
|
|
|
|
|
ADD . /gocode/src/github.com/drone/drone
|
|
|
|
|
|
|
|
WORKDIR /gocode/src/github.com/drone/drone
|
|
|
|
|
2014-08-08 13:14:21 +00:00
|
|
|
RUN godep restore
|
2014-02-13 18:56:51 +00:00
|
|
|
RUN make
|
|
|
|
RUN make install
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/droned"]
|
|
|
|
|
2014-07-17 21:05:55 +00:00
|
|
|
CMD ["--port=:80", "--datasource=/var/lib/drone/drone.sqlite"]
|