This commit is contained in:
Jerome Petazzoni
2020-09-24 15:53:23 +02:00
parent 3f5af6105e
commit dce7a7e728

View File

@@ -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