Advertisement
Guest User

Untitled

a guest
Sep 7th, 2018
1,270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. To build the docker image with `kubectl`:
  2.  
  3. '''
  4. #building and adding kubectl
  5. FROM alpine:3.8 as kubectl
  6.  
  7. ADD https://storage.googleapis.com/kubernetes-release/release/v1.6.4/bin/linux/amd64/kubectl /usr/local/bin/kubectl
  8. ENV HOME=/config
  9. RUN set -x && \
  10. apk add --no-cache curl ca-certificates && \
  11. chmod +x /usr/local/bin/kubectl
  12.  
  13. #your app container
  14. FROM other-image:latest
  15.  
  16. ~ normal stuff ~
  17.  
  18. COPY --from=kubectl /usr/local/bin/kubectl /usr/local/bin/kubectl
  19.  
  20. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement