mirror of
https://github.com/mentos1386/dotfiles.git
synced 2025-02-16 22:33:37 +00:00
fix(package:starship): add labels and correct binary
This commit is contained in:
parent
1c6e384941
commit
25a00906e3
1 changed files with 5 additions and 6 deletions
|
@ -1,8 +1,5 @@
|
||||||
FROM rust:1 as build
|
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
|
WORKDIR /usr/src/starship
|
||||||
|
|
||||||
ARG VERSION=0.47.0
|
ARG VERSION=0.47.0
|
||||||
|
@ -10,11 +7,13 @@ ARG VERSION=0.47.0
|
||||||
RUN git clone https://github.com/starship/starship.git \
|
RUN git clone https://github.com/starship/starship.git \
|
||||||
--branch v$VERSION \
|
--branch v$VERSION \
|
||||||
--depth 1 .
|
--depth 1 .
|
||||||
|
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
RUN strip target/release/starship
|
RUN strip target/release/starship
|
||||||
|
|
||||||
FROM scratch AS binaries
|
FROM scratch AS binaries
|
||||||
COPY --from=build /usr/src/starship/target/$TARGETPLATFORM/release/starship /
|
|
||||||
|
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
|
||||||
|
LABEL org.opencontainers.image.source https://github.com/mentos1386/env
|
||||||
|
|
||||||
|
COPY --from=build /usr/src/starship/target/release/starship /
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue