From 61332f5431c72f98f0e07e5184ffb16056660dba Mon Sep 17 00:00:00 2001 From: Jeremy Whitlock Date: Thu, 13 Feb 2014 11:56:51 -0700 Subject: [PATCH] Add a Dockerfile for building Drone.io Docker containers. --- Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..c03944e8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +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 + +RUN mkdir -p /gocode/src/github.com/drone + +ADD . /gocode/src/github.com/drone/drone + +WORKDIR /gocode/src/github.com/drone/drone + +RUN make deps +RUN make +RUN make install + +EXPOSE 80 + +ENTRYPOINT ["/usr/local/bin/droned"] + +CMD ["--port=:80", "--path=/var/lib/drone/drone.sqlite"]