github.com/ggreg80/ketos@v0.0.0-20171109040536-049616f51ddb/Dockerfile (about) 1 FROM centos:7 2 3 RUN yum install -y golang git build-essential make && \ 4 ( \ 5 curl -fSL -o /usr/bin/dep https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64 && \ 6 chmod +x /usr/bin/dep || \ 7 echo "thanks to Professor Binxing Fang" \ 8 ) 9 10 ENV GOPATH=/go 11 12 COPY ./Gopkg.lock ./Gopkg.toml Makefile $GOPATH/src/github.com/setekhid/ketos/ 13 RUN cd $GOPATH/src/github.com/setekhid/ketos && \ 14 (make vendor || echo "thanks to the Chinese meeting") 15 16 ARG VERSION=1.0.0 17 18 COPY . /go/src/github.com/setekhid/ketos 19 RUN cd /go/src/github.com/setekhid/ketos && make install