mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-29 16:20:26 +00:00
Co-authored-by: Lorenzo Fontana <lo@linux.com> Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
19 lines
608 B
Docker
19 lines
608 B
Docker
FROM golang:1.13-alpine AS build
|
|
ARG FALCOCTL_REF=2be3df92edbac668284fe5c165ccb5bd6bf4e869
|
|
|
|
RUN apk --no-cache add build-base git gcc ca-certificates
|
|
|
|
RUN git clone https://github.com/falcosecurity/falcoctl.git /falcoctl
|
|
|
|
WORKDIR /falcoctl
|
|
|
|
RUN git checkout ${FALCOCTL_REF}
|
|
RUN go mod vendor
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -o falcoctl -ldflags '-extldflags "-static"' .
|
|
|
|
FROM scratch
|
|
LABEL maintainer="opensource@sysdig.com"
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=build /falcoctl/falcoctl /falcoctl
|
|
CMD ["/falcoctl", "install", "probe"]
|