Skip to content

Commit

Permalink
fix: docker copy is weird
Browse files Browse the repository at this point in the history
  • Loading branch information
nain-F49FF806 committed Feb 19, 2024
1 parent 9456b18 commit ece10c3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ 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/ /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/profile.d/* /etc/profile.d/
Expand All @@ -52,7 +53,8 @@ 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/ /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-ubuntu/profile.d/* /etc/profile.d/
Expand All @@ -77,7 +79,8 @@ 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/ /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-arch/profile.d/* /etc/profile.d/

0 comments on commit ece10c3

Please sign in to comment.