Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To build the docker image with `kubectl`:
- '''
- #building and adding kubectl
- FROM alpine:3.8 as kubectl
- ADD https://storage.googleapis.com/kubernetes-release/release/v1.6.4/bin/linux/amd64/kubectl /usr/local/bin/kubectl
- ENV HOME=/config
- RUN set -x && \
- apk add --no-cache curl ca-certificates && \
- chmod +x /usr/local/bin/kubectl
- #your app container
- FROM other-image:latest
- ~ normal stuff ~
- COPY --from=kubectl /usr/local/bin/kubectl /usr/local/bin/kubectl
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement