mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-30 02:51:19 +00:00
20 lines
468 B
Text
20 lines
468 B
Text
FROM rust:1 as build
|
|
|
|
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
|
|
LABEL org.opencontainers.image.source https://github.com/mentos1386/env
|
|
|
|
WORKDIR /usr/src/starship
|
|
|
|
ARG VERSION=0.47.0
|
|
|
|
RUN git clone https://github.com/starship/starship.git \
|
|
--branch v$VERSION \
|
|
--depth 1 .
|
|
|
|
RUN cargo build --release
|
|
|
|
RUN strip target/release/starship
|
|
|
|
FROM scratch AS binaries
|
|
COPY --from=build /usr/src/starship/target/$TARGETPLATFORM/release/starship /
|
|
|