From 25a00906e3558b369153d5b916995e072ba6400f Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Wed, 23 Dec 2020 17:06:06 +0100 Subject: [PATCH] fix(package:starship): add labels and correct binary --- packages/Dockerfile.starship | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/Dockerfile.starship b/packages/Dockerfile.starship index d0347f2..1d8cb50 100644 --- a/packages/Dockerfile.starship +++ b/packages/Dockerfile.starship @@ -1,8 +1,5 @@ FROM rust:1 as build -LABEL maintainer="Tine Jozelj " -LABEL org.opencontainers.image.source https://github.com/mentos1386/env - WORKDIR /usr/src/starship ARG VERSION=0.47.0 @@ -10,11 +7,13 @@ 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 / + +LABEL maintainer="Tine Jozelj " +LABEL org.opencontainers.image.source https://github.com/mentos1386/env + +COPY --from=build /usr/src/starship/target/release/starship /