forked from pieterlange/kube-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (36 loc) · 998 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
36
37
38
39
40
41
42
FROM alpine:3.7
RUN apk update && \
apk add --update \
bash \
easy-rsa \
git \
openssh-client \
curl \
ca-certificates \
jq \
python \
py-yaml \
py2-pip \
libstdc++ \
gpgme \
libressl-dev \
make \
g++ \
&& \
git clone https://github.com/AGWA/git-crypt.git && \
make --directory git-crypt && \
make --directory git-crypt install && \
rm -rf git-crypt && \
apk del libressl-dev make g++ && \
rm -rf /var/cache/apk/*
RUN pip install ijson awscli
RUN adduser -h /backup -D backup
ENV KUBECTL_VERSION 1.12.0
ENV KUBECTL_SHA256 ba0f8d5776d84ffef5ce5d5c31f8d892e0c13d073948d5bafbb5341ad68ef463
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"]