forked from sapcc/kubernikus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (17 loc) · 817 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ARG VERSION=latest
FROM sapcc/kubernikus-binaries:$VERSION as kubernikus-binaries
FROM sapcc/kubernikus-docs:$VERSION as kubernikus-docs
FROM alpine:3.8 as kubernikus
LABEL source_repository="https://github.com/sapcc/kubernikus"
MAINTAINER "Fabian Ruff <[email protected]>"
RUN apk add --no-cache curl iptables
RUN curl -Lo /bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64 \
&& chmod +x /bin/dumb-init \
&& dumb-init -V
COPY etc/*.json /etc/kubernikus/
COPY charts/ /etc/kubernikus/charts
COPY --from=kubernikus-binaries /apiserver /kubernikus /wormhole /usr/local/bin/
#COPY --from=kubernikus-binaries /kubernikusctl /static/binaries/linux/amd64/kubernikusctl
COPY --from=kubernikus-docs /public/docs /static/docs
ENTRYPOINT ["dumb-init", "--"]
CMD ["apiserver"]