woodpecker/Dockerfile
Jean Mertz d4bfd39713 update Dockerfile implementation
* fix $GOPATH usage
* improve layer caching
2015-06-05 19:41:36 +02:00

19 lines
625 B
Docker

FROM golang:1.4.2
ENV DRONE_SERVER_PORT :80
WORKDIR $GOPATH/src/github.com/drone/drone
EXPOSE 80
ENTRYPOINT ["/usr/local/bin/drone"]
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/...
ADD . .
RUN make bindata deps \
&& make build \
&& mv bin/* /usr/local/bin/ \
&& rm -rf bin cmd/drone-server/drone_bindata.go