mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 00:23:22 +02:00
fix flake in copy symlink
This commit is contained in:
@@ -2,5 +2,13 @@ FROM busybox as t
|
||||
RUN echo "hello" > /tmp/target
|
||||
RUN ln -s /tmp/target /tmp/link
|
||||
|
||||
## Relative link
|
||||
RUN cd tmp && ln -s target relative_link
|
||||
|
||||
## Relative link with paths
|
||||
RUN mkdir workdir && cd workdir && ln -s ../tmp/target relative_dir_link
|
||||
|
||||
FROM scratch
|
||||
COPY --from=t /tmp/link /tmp
|
||||
COPY --from=t /tmp/link /tmp/
|
||||
COPY --from=t /tmp/relative_link /tmp/
|
||||
COPY --from=t /workdir/relative_dir_link /workdir/
|
||||
Reference in New Issue
Block a user