dockerfile: single run

This commit is contained in:
hashfyre 2018-01-10 17:29:56 +05:30
parent d8eefee123
commit 0fe0fc584f
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
FROM alpine:3.4 FROM alpine:3.4
RUN apk --no-cache add curl ca-certificates bash RUN apk --no-cache add curl ca-certificates bash && \
RUN curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl curl -Lo /usr/local/bin/kubectl 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 chmod +x /usr/local/bin/kubectl
COPY update.sh /bin/ COPY update.sh /bin/
ENTRYPOINT ["/bin/bash"] ENTRYPOINT ["/bin/bash"]
CMD ["/bin/update.sh"] CMD ["/bin/update.sh"]