-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
52 lines (44 loc) · 1.76 KB
/
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
43
44
45
46
47
48
49
50
51
ARG ALPINE_VERSION=alpine:latest
# ≡≡≡≡≡≡≡≡≡≡≡≡ Prepare downloader ≡≡≡≡≡≡≡≡≡≡≡≡
FROM ${ALPINE_VERSION} AS downloader
RUN apk update
RUN apk add bash curl jq
# ≡≡≡≡≡≡≡≡≡≡≡≡ Download kubectl ≡≡≡≡≡≡≡≡≡≡≡≡
FROM downloader AS kubectl
COPY scripts/download-kubectl.sh /
RUN sh /download-kubectl.sh
# ≡≡≡≡≡≡≡≡≡≡≡≡ Download helm ≡≡≡≡≡≡≡≡≡≡≡≡
FROM downloader AS helm
RUN apk add openssl
COPY scripts/download-helm.sh /
RUN sh /download-helm.sh
# ≡≡≡≡≡≡≡≡≡≡≡≡ Download wait-for-service ≡≡≡≡≡≡≡≡≡≡≡≡
FROM downloader AS wait-for-service
COPY scripts/download-wait-for-service.sh /
RUN sh /download-wait-for-service.sh
# ≡≡≡≡≡≡≡≡≡≡≡≡ Prepare the image ≡≡≡≡≡≡≡≡≡≡≡≡
FROM ${ALPINE_VERSION}
LABEL maintainer="Bojan Cekrlic - https://github.com/bokysan/docker-alpine-bootstrap/"
# Install basic set of tools
RUN \
apk add --no-cache --upgrade && \
apk add --no-cache --update \
bash \
curl \
wget \
unzip \
tar \
xz \
sed \
gawk \
vim \
postgresql-client \
mariadb-client \
libressl \
jq && \
(rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true)
COPY --from=helm /usr/local/bin/helm /usr/local/bin/
COPY --from=kubectl /usr/local/bin/kubectl /usr/local/bin/
COPY --from=wait-for-service /usr/local/bin/wait-for-service /usr/local/bin/
COPY --from=wait-for-service /usr/local/bin/fabric8-* /usr/local/bin/
COPY files/* /usr/local/bin/