feat(packages): make them executable in alpine image

This commit is contained in:
Tine Jozelj 2020-12-25 14:25:30 +01:00
parent 6f3a342a96
commit 8bc2400d22
No known key found for this signature in database
GPG key ID: 3818B74E3830D7CF
3 changed files with 10 additions and 6 deletions

View file

@ -51,8 +51,8 @@ RUN set -ueox pipefail \
/var/tmp/*
# Install other packages
COPY --from=ghcr.io/mentos1386/starship:0.47.0 /starship /usr/local/bin/starship
COPY --from=ghcr.io/mentos1386/kubectl:1.20.0 /kubectl /usr/local/bin/kubectl
COPY --from=ghcr.io/mentos1386/starship:0.47.0 /usr/local/bin/starship /usr/local/bin/starship
COPY --from=ghcr.io/mentos1386/kubectl:1.20.0 /usr/local/bin/kubectl /usr/local/bin/kubectl
# Golang
COPY --from=golang:1.15.6 --chown=${SSH_USER} /usr/local/go /home/${SSH_USER}/.go
ENV PATH=/home/${SSH_USER}/.go/bin:$PATH

View file

@ -10,9 +10,11 @@ ARG TARGETPLATFORM
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/${TARGETPLATFORM}/kubectl"
RUN chmod +x kubectl
FROM scratch AS binaries
FROM alpine:3
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
LABEL org.opencontainers.image.source https://github.com/mentos1386/workspace
COPY --from=build /root/kubectl /
COPY --from=build /root/kubectl /usr/local/bin/kubectl
ENTRYPOINT /usr/local/bin/kubectl

View file

@ -10,9 +10,11 @@ RUN git clone https://github.com/starship/starship.git \
RUN cargo build --release
RUN strip target/release/starship
FROM scratch AS binaries
FROM alpine:3
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
LABEL org.opencontainers.image.source https://github.com/mentos1386/workspace
COPY --from=build /usr/src/starship/target/release/starship /
COPY --from=build /usr/src/starship/target/release/starship /usr/local/bin/starship
ENTRYPOINT /usr/local/bin/starship