FROM rust:1.78-slim AS builderRUN rustup component add rustfmtRUN apt-get update && apt-get install -y libssl-dev pkg-config clangCOPY . /sourcesWORKDIR /sourcesRUN cargo build --releaseFROM debian:bullseye-slim# Install git and cleanup package lists.# This is required for git-http-backend to work.RUN apt-get update && \apt-get install -y git && \rm -rf /var/lib/apt/lists/*COPY --from=builder /sources/target/release/rgit /rgitCOPY ./scripts/docker/entrypoint.sh .RUN chmod +x entrypoint.shEXPOSE 8000ENTRYPOINT ["/entrypoint.sh"]