mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-03 20:14:26 +02:00
This works around mtime-precision issues that cause us to differ from docker-built images when the touch command executes too quickly to modify the mtime. Also one fix in the .travis.yml beacuse something appears to have changed in their default go installation.
19 lines
410 B
Plaintext
19 lines
410 B
Plaintext
ARG REGISTRY=gcr.io
|
|
ARG REPO=google-appengine
|
|
ARG WORD=hello
|
|
ARG W0RD2=hey
|
|
|
|
FROM ${REGISTRY}/${REPO}/debian9 as stage1
|
|
|
|
# Should evaluate WORD and create /tmp/hello
|
|
ARG WORD
|
|
RUN touch /${WORD}
|
|
|
|
FROM ${REGISTRY}/${REPO}/debian9
|
|
|
|
COPY --from=stage1 /hello /tmp
|
|
|
|
# /tmp/hey should not get created without the ARG statement
|
|
# Use -d 0 to force a time change because of stat resolution
|
|
RUN touch -d 0 /tmp/${WORD2}
|