Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
optimization
  • Loading branch information
gzgithub authored and Gianluca Arbezzano committed Jun 2, 2018
1 parent d2c82ad commit e875318
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
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
ADD . /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"]
# ENTRYPOINT ["orbiter"]
CMD ["/bin/orbiter", "daemon"]

0 comments on commit e875318

Please sign in to comment.