2020-12-22 14:34:31 +00:00
|
|
|
FROM rust:1 as build
|
|
|
|
|
|
|
|
WORKDIR /usr/src/starship
|
|
|
|
|
|
|
|
ARG VERSION=0.47.0
|
|
|
|
|
2020-12-22 20:23:51 +00:00
|
|
|
RUN git clone https://github.com/starship/starship.git \
|
|
|
|
--branch v$VERSION \
|
|
|
|
--depth 1 .
|
2020-12-22 14:34:31 +00:00
|
|
|
RUN cargo build --release
|
|
|
|
RUN strip target/release/starship
|
|
|
|
|
|
|
|
FROM scratch AS binaries
|
2020-12-23 16:06:06 +00:00
|
|
|
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
|
2020-12-23 19:31:35 +00:00
|
|
|
LABEL org.opencontainers.image.source https://github.com/mentos1386/workspace
|
2020-12-23 16:06:06 +00:00
|
|
|
|
|
|
|
COPY --from=build /usr/src/starship/target/release/starship /
|
2020-12-22 14:34:31 +00:00
|
|
|
|