mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
add packs
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
dfa5e4cfc1
commit
90bd57ad96
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:alpine as builder
|
FROM golang:alpine AS builder
|
||||||
MAINTAINER Jessica Frazelle <jess@linux.com>
|
MAINTAINER Jessica Frazelle <jess@linux.com>
|
||||||
|
|
||||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
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/fleet ./cmd/fleet
|
||||||
RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /usr/bin/fleetctl ./cmd/fleetctl
|
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
|
FROM scratch
|
||||||
|
|
||||||
COPY --from=builder /usr/bin/fleet /usr/bin/fleet
|
COPY --from=builder /usr/bin/fleet /usr/bin/fleet
|
||||||
COPY --from=builder /usr/bin/fleetctl /usr/bin/fleetctl
|
COPY --from=builder /usr/bin/fleetctl /usr/bin/fleetctl
|
||||||
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
||||||
|
COPY --from=osquery /usr/share/osquery/packs /packs
|
||||||
|
|
||||||
ENTRYPOINT [ "fleet" ]
|
ENTRYPOINT [ "fleet" ]
|
||||||
CMD [ "--help" ]
|
CMD [ "--help" ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user