kmon 1.5.1

Linux kernel manager and activity monitor
# Build Image
FROM rust:1.40.0-stretch as cargo-build
RUN apt-get update && apt-get install -y --no-install-recommends \
 libxcb-shape0-dev=1.12-1 libxcb-xfixes0-dev=1.12-1 --allow-unauthenticated \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*
WORKDIR /app/
COPY Cargo.toml Cargo.toml
RUN mkdir src/ && echo "fn main() {println!(\"failed to build\")}" > src/main.rs
RUN cargo build --release
RUN rm -f target/release/deps/kmon*
COPY . .
RUN cargo build --release
RUN mkdir -p build-out && cp target/release/kmon build-out/
# Runtime Image
FROM debian:stretch-slim as runtime-image
RUN apt-get update && apt-get install -y --no-install-recommends \
 libxcb-shape0-dev=1.12-1 libxcb-xfixes0-dev=1.12-1 kmod=23-2 --allow-unauthenticated \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*
WORKDIR /root/
COPY --from=cargo-build /app/build-out/kmon .
CMD ["./kmon"]