-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
22 lines (19 loc) · 865 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:jessie-slim
LABEL maintainer="[email protected]"
ENV KUBE_LATEST_VERSION="v1.5.2"
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -y \
&& apt-get install -y apt-utils gettext-base python curl unzip \
&& curl -sS -L https://s3.amazonaws.com/aws-cli/awscli-bundle.zip -o awscli-bundle.zip \
&& unzip awscli-bundle.zip \
&& ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws \
&& rm -rf ./awscli-bundle \
&& curl -sS -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl \
&& apt-get autoremove -y \
&& apt-get clean -y
# We will start and expose ssh on port 22
EXPOSE 22
# Add the container start script, which will start ssh
COPY bin/ /root/bin
ENTRYPOINT ["/root/bin/kube-backup.sh"]