slice-command 0.4.2

slice is a command-line tool that allows you to slice the contents of a file using syntax similar to Python's slice notation.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 scratch as binary

COPY --from=builder /slice /

ENTRYPOINT ["/slice"]