mirror of
https://github.com/BretFisher/shpod.git
synced 2026-05-07 02:16:32 +00:00
Add jid
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
FROM golang:alpine AS jid
|
||||
RUN apk add git
|
||||
RUN go get -u github.com/simeji/jid/cmd/jid
|
||||
FROM alpine
|
||||
ENV \
|
||||
COMPOSE_VERSION=1.26.2 \
|
||||
@@ -45,6 +48,7 @@ RUN cd /tmp \
|
||||
&& rm -rf kube-ps1
|
||||
RUN kubectl config set-context kubernetes --namespace=default \
|
||||
&& kubectl config use-context kubernetes
|
||||
COPY --from=jid /go/bin/jid /usr/local/bin/jid
|
||||
WORKDIR /root
|
||||
RUN echo trap exit TERM > /etc/profile.d/trapterm.sh
|
||||
RUN sed -i "s/export PS1=/#export PS1=/" /etc/profile
|
||||
|
||||
Reference in New Issue
Block a user