Skip to content

Commit

Permalink
fix: Copy the cargo/bin directory also, not just it's contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
nain-F49FF806 committed Feb 19, 2024
1 parent 4f2a3ca commit 9456b18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ LABEL org.opencontainers.image.description "${SUMMARY}. ${USAGE}"
# Pull in useful rust tools
## https://doc.rust-lang.org/stable/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
## If you wish to cache binaries installed with cargo install, you need to cache the bin/ folder and the .crates.toml and .crates2.json files.
COPY --from=builder /usr/local/cargo/bin/ /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
COPY --from=builder /usr/local/cargo/bin /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
ENV PATH=/opt/cargo/bin:$PATH

COPY customization/rusty-fedora/profile.d/* /etc/profile.d/
Expand All @@ -52,7 +52,7 @@ LABEL org.opencontainers.image.description "${SUMMARY}. ${USAGE}"
# Pull in useful rust tools
## https://doc.rust-lang.org/stable/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
## If you wish to cache binaries installed with cargo install, you need to cache the bin/ folder and the .crates.toml and .crates2.json files.
COPY --from=builder /usr/local/cargo/bin/ /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
COPY --from=builder /usr/local/cargo/bin /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
ENV PATH=/opt/cargo/bin:$PATH

COPY customization/rusty-ubuntu/profile.d/* /etc/profile.d/
Expand All @@ -77,7 +77,7 @@ LABEL org.opencontainers.image.description "${SUMMARY}. ${USAGE}"
# Pull in useful rust tools
## https://doc.rust-lang.org/stable/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
## If you wish to cache binaries installed with cargo install, you need to cache the bin/ folder and the .crates.toml and .crates2.json files.
COPY --from=builder /usr/local/cargo/bin/ /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
COPY --from=builder /usr/local/cargo/bin /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
ENV PATH=/opt/cargo/bin:$PATH

COPY customization/rusty-arch/profile.d/* /etc/profile.d/

0 comments on commit 9456b18

Please sign in to comment.