woodpecker/Dockerfile

23 lines
687 B
Docker
Raw Normal View History

2015-05-18 17:05:58 +00:00
FROM golang:1.4.2
2015-05-18 17:05:58 +00:00
ENV DRONE_SERVER_PORT :80
WORKDIR $GOPATH/src/github.com/drone/drone
2015-05-18 17:05:58 +00:00
EXPOSE 80
ENTRYPOINT ["/usr/local/bin/drone"]
CMD ["-config", "/tmp/drone.toml"]
2015-05-18 17:05:58 +00:00
RUN apt-get update \
&& 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
RUN touch /tmp/drone.toml
ADD . .
RUN make bindata deps \
&& make build \
&& mv bin/* /usr/local/bin/ \
&& rm -rf bin cmd/drone-server/drone_bindata.go