๐Ÿ“ฆ sharkdp / vivid

๐Ÿ“„ Dockerfile ยท 18 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18FROM rust:1.74-bullseye as rust-build-stage
RUN apt-get update && apt-get upgrade -y

WORKDIR /build
COPY Cargo.lock Cargo.toml ./
COPY src src/
COPY config config/
COPY themes themes/
RUN cargo build --release

FROM gcr.io/distroless/cc-debian10
USER 1001:1001

WORKDIR /app
COPY --from=rust-build-stage --chown=1001:1001 /build/target/release/vivid .

ENTRYPOINT ["/app/vivid"]