Skip to content

Commit

Permalink
fix: again, docker copy is weird
Browse files Browse the repository at this point in the history
It tries to resolve symlinks and copy target file. If it's a dangling symlink, no cigar, docker kaputs.

So solution (workaround?), copy the parent directory. Apparently then, the symlinks are copied as is.

GoogleContainerTools/kaniko#1111 (comment)

moby/moby#40449 (comment)
  • Loading branch information
nain-F49FF806 committed Feb 21, 2024
1 parent 7fdf91d commit 76a538a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ COPY --from=builder /usr/local/cargo/bin/ /opt/cargo/bin/
COPY --from=builder /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
ENV PATH=/opt/cargo/bin:$PATH

COPY customization/rusty-fedora/opt/cargo/bin/* /opt/cargo/bin/
COPY customization/rusty-fedora/etc/profile.d/* /etc/profile.d/
COPY customization/rusty-fedora/opt/cargo/bin/ /opt/cargo/bin/
COPY customization/rusty-fedora/etc/profile.d/ /etc/profile.d/


# --- Ubuntu ---
Expand Down

0 comments on commit 76a538a

Please sign in to comment.