mirror of
https://github.com/spaytac/orbiter.git
synced 2026-01-21 21:44:47 +00:00
- 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>
14 lines
323 B
Docker
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"] |