=> ERROR [builder 7/9] RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/usr/src/app/target cargo build --release 36.1s
------
> [builder 7/9] RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/usr/src/app/target cargo build --release:
#17 2.434 Updating crates.io index
#17 36.06 Killed
------
Error failed to fetch an image or build from source: error building: executor failed running [/bin/sh -c cargo build --release]: exit code: 137
exit code: 137
Process is being SIGKILL’d
This usually points to an OOM kill.
Maybe you’re going over some memory limit?
It was previously working fine, when all the rust files are in single folder. This happened when i tried to separate them into modules.