slice-command 0.4.1

slice is a command-line tool that allows you to slice the contents of a file using syntax similar to Python's slice notation.
FROM rust:slim as builder

RUN rustup target add "$(uname -m)"-unknown-linux-musl

WORKDIR /work

COPY . .

RUN cargo build --release --locked --target "$(uname -m)"-unknown-linux-musl

RUN strip /work/target/"$(uname -m)"-unknown-linux-musl/release/slice -o /slice

FROM gcr.io/distroless/static:nonroot as binary

WORKDIR /

COPY --from=builder /slice /

ENTRYPOINT ["/slice"]