diff --git a/integration/dockerfiles-with-context/issue-57/Dockerfile b/integration/dockerfiles-with-context/issue-57/Dockerfile index fdcb4377e..4c61bfb69 100644 --- a/integration/dockerfiles-with-context/issue-57/Dockerfile +++ b/integration/dockerfiles-with-context/issue-57/Dockerfile @@ -20,8 +20,12 @@ RUN addgroup -g 1001 -S appgroup \ # Add local file with and without chown ADD --chown=1005:appgroup a.txt /a.txt +RUN [ "$(ls -ln /a.txt | tr -s ' ' | cut -d' ' -f 3)" = 1005 ] && \ + [ "$(ls -ln /a.txt | tr -s ' ' | cut -d' ' -f 4)" = 1001 ] ADD b.txt /b.txt # Add remote file with and without chown ADD --chown=bob:1001 https://raw.githubusercontent.com/GoogleContainerTools/kaniko/master/README.md /r1.txt +RUN [ "$(ls -ln /r1.txt | tr -s ' ' | cut -d' ' -f 3)" = 1004 ] && \ + [ "$(ls -ln /r1.txt | tr -s ' ' | cut -d' ' -f 4)" = 1001 ] ADD https://raw.githubusercontent.com/GoogleContainerTools/kaniko/master/README.md /r2.txt