2015-05-18 17:05:58 +00:00
|
|
|
FROM golang:1.4.2
|
2015-06-05 17:38:01 +00:00
|
|
|
|
2015-05-18 17:05:58 +00:00
|
|
|
ENV DRONE_SERVER_PORT :80
|
2015-06-05 17:38:01 +00:00
|
|
|
WORKDIR $GOPATH/src/github.com/drone/drone
|
2015-05-18 17:05:58 +00:00
|
|
|
|
2015-06-05 17:38:01 +00:00
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/drone"]
|
2015-06-05 17:48:28 +00:00
|
|
|
CMD ["-config", "/tmp/drone.toml"]
|
2015-05-18 17:05:58 +00:00
|
|
|
|
|
|
|
RUN apt-get update \
|
2015-06-05 17:38:01 +00:00
|
|
|
&& apt-get install -y libsqlite3-dev \
|
|
|
|
&& git clone git://github.com/gin-gonic/gin.git $GOPATH/src/github.com/gin-gonic/gin \
|
|
|
|
&& go get -u github.com/jteeuwen/go-bindata/...
|
2015-05-18 17:05:58 +00:00
|
|
|
|
2015-06-05 17:48:28 +00:00
|
|
|
RUN touch /tmp/drone.toml
|
|
|
|
|
2015-06-05 17:38:01 +00:00
|
|
|
ADD . .
|
|
|
|
RUN make bindata deps \
|
|
|
|
&& make build \
|
|
|
|
&& mv bin/* /usr/local/bin/ \
|
|
|
|
&& rm -rf bin cmd/drone-server/drone_bindata.go
|