orbiter/Dockerfile
Lorenzo Fontana 23993995ad
Build improvement closes #36
- Some cleaning on the Makefile, also specify PHONYs
- Static builds
- Use multi staged builds for the Docker image
- Remove .idea from the gitignore, it's not related to the project but on
how the user interacts with it. If one uses idea he can just create a
global gitignore to ignore that
- License had a disalignement

Signed-off-by: Lorenzo Fontana <lo@linux.com>
2017-08-20 04:46:52 +02:00

14 lines
323 B
Docker

FROM golang:1.8.3 as builder
RUN mkdir -p /go/src/github.com/gianarb/orbiter
ADD . /go/src/github.com/gianarb/orbiter/
WORKDIR /go/src/github.com/gianarb/orbiter
RUN make build
FROM scratch
COPY --from=builder /go/src/github.com/gianarb/orbiter/bin/orbiter /bin/orbiter
ENTRYPOINT ["orbiter"]
CMD ["orbiter", "daemon"]