forked from pieterlange/kube-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (29 loc) · 783 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
28
29
30
31
32
33
34
35
FROM alpine:3.11
RUN apk update && \
apk add --update \
bash \
easy-rsa \
git \
openssh-client \
curl \
ca-certificates \
jq \
python \
py-yaml \
py2-pip \
libstdc++ \
gpgme \
git-crypt \
&& \
rm -rf /var/cache/apk/*
RUN pip install ijson awscli
RUN adduser -h /backup -D backup
ENV KUBECTL_VERSION 1.17.0
ENV KUBECTL_SHA256 6e0aaaffe5507a44ec6b1b8a0fb585285813b78cc045f8804e70a6aac9d1cb4c
ENV KUBECTL_URI https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
RUN curl -SL ${KUBECTL_URI} -o kubectl && chmod +x kubectl
RUN echo "${KUBECTL_SHA256} kubectl" | sha256sum -c - || exit 10
ENV PATH="/:${PATH}"
COPY entrypoint.sh /
USER backup
ENTRYPOINT ["/entrypoint.sh"]