Use the shell "test" command instead of "[" to avoid confusion with Dockerfile RUN-syntax
This commit is contained in:
parent
7a2f27a5d5
commit
f58c294274
|
|
@ -22,6 +22,7 @@ RUN \
|
|||
ls -lh /usr/local/bin/myfile
|
||||
FROM base as final
|
||||
COPY --from=build ["/usr/local/bin/myfile", "/usr/local/bin/"]
|
||||
RUN [ -u /usr/local/bin/myfile ]
|
||||
# Test if file exists and its set-user-id bit is set
|
||||
RUN test -u /usr/local/bin/myfile
|
||||
LABEL \
|
||||
description="Testing setuid behavior in Kaniko"
|
||||
|
|
|
|||
Loading…
Reference in New Issue