Skip to content

Commit 4730449

Browse files
Multistage
1 parent e3b6d91 commit 4730449

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
FROM alpine:3.12.0
1+
FROM alpine:3.12.0 as fetcher
22

33
ARG KAPP_VERSION=v0.33.0
44

5-
ENV KUBECONFIG=./tmp/kube_config.yml
6-
7-
WORKDIR /workdir
8-
95
ADD https://github.com/k14s/kapp/releases/download/${KAPP_VERSION}/kapp-linux-amd64 /usr/local/bin/kapp
106

117
RUN chmod +x /usr/local/bin/kapp
128

9+
FROM alpine:3.12.0
10+
11+
ENV KUBECONFIG=./tmp/kube_config.yml
12+
13+
WORKDIR /workdir
14+
1315
ENTRYPOINT [ "/usr/local/bin/kapp" ]
16+
17+
COPY --from=fetcher /usr/local/bin/kapp /usr/local/bin/kapp

0 commit comments

Comments
 (0)