-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
27 lines (20 loc) · 845 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM alpine:latest
MAINTAINER vinh-ngu@hotmail.com
ENV RANCHER_VERSION v2.7.0
ENV TERM konsole
# Install deps
RUN apk add wget curl bash ncurses
# Install rancher-cli
RUN wget -O rancher-cli.tar.gz https://github.com/rancher/cli/releases/download/${RANCHER_VERSION}/rancher-linux-amd64-${RANCHER_VERSION}.tar.gz
RUN mkdir rancher-cli
RUN tar xvf rancher-cli.tar.gz -C rancher-cli --strip-components 2
RUN rm -rf rancher-cli.tar.gz
RUN ln -s /rancher-cli/rancher /usr/bin/rancher
# Install kubectl
RUN curl -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 kubectl
RUN ln -s /kubectl /usr/bin/kubectl
COPY entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
WORKDIR /app
CMD ["/bin/entrypoint.sh"]