From 90bd57ad9619c62732071c95ea3a237d2490e39e Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 21 Jul 2018 22:04:50 -0400 Subject: [PATCH] add packs Signed-off-by: Jess Frazelle --- fleet/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fleet/Dockerfile b/fleet/Dockerfile index f6fe659..e4d7115 100644 --- a/fleet/Dockerfile +++ b/fleet/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine as builder +FROM golang:alpine AS builder MAINTAINER Jessica Frazelle ENV PATH /go/bin:/usr/local/go/bin:$PATH @@ -23,11 +23,14 @@ RUN make deps generate RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /usr/bin/fleet ./cmd/fleet RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /usr/bin/fleetctl ./cmd/fleetctl +FROM r.j3ss.co/osquery AS osquery + FROM scratch COPY --from=builder /usr/bin/fleet /usr/bin/fleet COPY --from=builder /usr/bin/fleetctl /usr/bin/fleetctl COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs +COPY --from=osquery /usr/share/osquery/packs /packs ENTRYPOINT [ "fleet" ] CMD [ "--help" ]