Merge pull request #30 from gianarb/feature/build-dockerfile

Building with dockerifle
This commit is contained in:
Gianluca Arbezzano 2017-08-08 21:09:42 +02:00 committed by GitHub
commit e1ee259ad4
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"]