mirror of https://github.com/k3d-io/k3d
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
628 B
16 lines
628 B
FROM golang:1.15 as builder
|
|
ARG GIT_TAG_OVERRIDE
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN make build -e GIT_TAG_OVERRIDE=${GIT_TAG_OVERRIDE} && bin/k3d version
|
|
|
|
FROM docker:20.10-dind as dind
|
|
RUN apk update && apk add bash curl sudo jq git make netcat-openbsd
|
|
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && \
|
|
chmod +x ./kubectl && \
|
|
mv ./kubectl /usr/local/bin/kubectl
|
|
COPY --from=builder /app/bin/k3d /bin/k3d
|
|
|
|
FROM scratch as binary-only
|
|
COPY --from=builder /app/bin/k3d /bin/k3d
|
|
ENTRYPOINT ["/bin/k3d"] |