Building with dockerifle

This commit is contained in:
Manuel Bovo 2017-07-17 15:12:27 +02:00 committed by Gianluca Arbezzano
parent 29cfd3d109
commit 15833c85c6
No known key found for this signature in database
GPG Key ID: 9505D2809E1D6180
2 changed files with 11 additions and 0 deletions

11
Dockerfile.build Normal file
View File

@ -0,0 +1,11 @@
FROM golang:1.8.3
RUN mkdir -p /go/src/github.com/gianarb/orbiter
ADD . /go/src/github.com/gianarb/orbiter/
WORKDIR /go/src/github.com/gianarb/orbiter
RUN go build -o orbiter
RUN mv ./orbiter /bin/orbiter
ENTRYPOINT ["orbiter"]
CMD ["orbiter", "daemon"]