mirror of
https://github.com/honestbee/drone-kubernetes.git
synced 2025-05-12 21:43:18 +00:00
- Version pinning on Base Image - COPY is preferred over ADD - apk -U will leave index in image, use `--no-cache` to avoid storing repo index - curl kubectl directly to final destination - Change entrypoint instead of running `sh -c bash -c /bin/update.sh`
7 lines
371 B
Docker
7 lines
371 B
Docker
FROM alpine:3.4
|
|
RUN apk --no-cache add curl ca-certificates bash
|
|
RUN curl -o /usr/local/bin/kubectl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
|
|
RUN chmod +x /usr/local/bin/kubectl
|
|
COPY update.sh /bin/
|
|
ENTRYPOINT ["/bin/bash"]
|
|
CMD ["/bin/update.sh"]
|