From ea288c4a8a0245793144b621e1ce317aaf3e0d5e Mon Sep 17 00:00:00 2001 From: holly sparkles Date: Mon, 04 Dec 2023 14:26:54 +0100 Subject: [PATCH] Fix for http cloning not working in docker --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2043b19..903e5ad 100644 --- a/Dockerfile +++ a/Dockerfile @@ -7,6 +7,13 @@ RUN cargo build --release FROM 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 /rgit COPY ./scripts/docker/entrypoint.sh . -- rgit 0.1.3