Skip to content

Pre-populate cargo cache #1

@killercup

Description

@killercup

Cargo's initial cloning of the registry can take a while (it's 164MB on my machine right now), so it might make sense to run something like

cargo new --quiet foo && cd foo && echo 'libc = "0.2"' >> Cargo.toml && cargo fetch --quiet

at the end of the RUN block, before printing out the versions. (Or in a new RUN block so it creates a new layer.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions