rfgrep 0.4.0

Advanced recursive file grep utility with comprehensive file type classification - search, list, and analyze 153+ file formats with intelligent filtering and safety policies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## Multi-stage Dockerfile for rfgrep
# Build stage
FROM rust:1.90-slim AS builder
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends ca-certificates build-essential pkg-config libssl-dev git && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/rfgrep
COPY . .
RUN useradd --no-create-home --shell /bin/false builder
RUN cargo build --release --locked --bin rfgrep

# Final stage
FROM gcr.io/distroless/cc
COPY --from=builder /usr/src/rfgrep/target/release/rfgrep /usr/local/bin/rfgrep
USER nonroot
WORKDIR /home/nonroot
ENTRYPOINT ["/usr/local/bin/rfgrep"]
CMD ["--help"]