2021-01-17 16:33:07 +00:00
|
|
|
FROM lachlanevenson/k8s-kubectl:v1.20.1
|
|
|
|
RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g' /etc/apk/repositories
|
|
|
|
RUN apk update --no-cache \
|
|
|
|
&& apk add --update --no-cache curl \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
2021-01-15 03:57:38 +00:00
|
|
|
WORKDIR /opt/devops
|
|
|
|
ADD bin .
|
2021-01-17 16:33:07 +00:00
|
|
|
ENV PATH=/opt/devops:$PATH
|
|
|
|
ENTRYPOINT ["/usr/bin/env"]
|
|
|
|
CMD ["ls"]
|