mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 16:11:41 +02:00
* Add --target flag for multistage builds * change validate to validateTarget
11 lines
190 B
Plaintext
11 lines
190 B
Plaintext
FROM gcr.io/distroless/base:latest as base
|
|
COPY . .
|
|
|
|
FROM scratch as second
|
|
ENV foopath context/foo
|
|
COPY --from=0 $foopath context/b* /foo/
|
|
|
|
FROM base
|
|
ARG file
|
|
COPY --from=second /foo $file
|