mirror of
https://github.com/mentos1386/dotfiles.git
synced 2025-02-20 00:03:37 +00:00
feat(packages): make them executable in alpine image
This commit is contained in:
parent
6f3a342a96
commit
8bc2400d22
3 changed files with 10 additions and 6 deletions
|
@ -51,8 +51,8 @@ RUN set -ueox pipefail \
|
||||||
/var/tmp/*
|
/var/tmp/*
|
||||||
|
|
||||||
# Install other packages
|
# Install other packages
|
||||||
COPY --from=ghcr.io/mentos1386/starship:0.47.0 /starship /usr/local/bin/starship
|
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 /kubectl /usr/local/bin/kubectl
|
COPY --from=ghcr.io/mentos1386/kubectl:1.20.0 /usr/local/bin/kubectl /usr/local/bin/kubectl
|
||||||
# Golang
|
# Golang
|
||||||
COPY --from=golang:1.15.6 --chown=${SSH_USER} /usr/local/go /home/${SSH_USER}/.go
|
COPY --from=golang:1.15.6 --chown=${SSH_USER} /usr/local/go /home/${SSH_USER}/.go
|
||||||
ENV PATH=/home/${SSH_USER}/.go/bin:$PATH
|
ENV PATH=/home/${SSH_USER}/.go/bin:$PATH
|
||||||
|
|
|
@ -10,9 +10,11 @@ ARG TARGETPLATFORM
|
||||||
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/${TARGETPLATFORM}/kubectl"
|
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/${TARGETPLATFORM}/kubectl"
|
||||||
RUN chmod +x kubectl
|
RUN chmod +x kubectl
|
||||||
|
|
||||||
FROM scratch AS binaries
|
FROM alpine:3
|
||||||
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
|
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
|
||||||
LABEL org.opencontainers.image.source https://github.com/mentos1386/workspace
|
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
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,11 @@ RUN git clone https://github.com/starship/starship.git \
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
RUN strip target/release/starship
|
RUN strip target/release/starship
|
||||||
|
|
||||||
FROM scratch AS binaries
|
FROM alpine:3
|
||||||
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
|
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
|
||||||
LABEL org.opencontainers.image.source https://github.com/mentos1386/workspace
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue