yes that's correct, I have multiple projects that I want to create containers for and manage them with a docker-compose file. This is my docker file, I'm using a demo app to make this work first:
FROM rust AS build
# Download the target for static linking.
RUN rustup target add x86_64-unknown-linux-musl
RUN USER=root cargo new my-app
COPY Cargo.toml Cargo.lock ./
RUN cargo build --release
# Copy the source and build the application.
COPY src ./src
RUN cargo install --target x86_64-unknown-linux-musl --path .
# Copy the statically-linked binary into a scratch container.
COPY --from=build /usr/local/cargo/bin/my-app .
The command '/bin/sh -c cargo install --target x86_64-unknown-linux-musl --path .' returned a non-zero code: 101