Support layer caching on Dockerfile builds
Anonymous

3 years ago

Would be great to be able to use same Dockerfile as local and use cache like

RUN --mount=type=cache,target=/usr/local/cargo/registry \

    --mount=type=cache,target=/home/root/app/target \

    cargo build --release

for rust mainly, as build times are slow. Not sure what this entails, and not sure what caching is done on the nixpacks side

0 Replies

Loading...