🏡 index : ~doyle/rgit.git

author holly sparkles <sparkles@holly.sh> 2023-12-04 13:26:54.0 +00:00:00
committer Jordan Doyle <jordan@doyle.la> 2023-12-04 17:33:12.0 +00:00:00
commit
ea288c4a8a0245793144b621e1ce317aaf3e0d5e [patch]
tree
61c38c63a56be9e154266911110cdaa231198842
parent
2ff67e50994e529e6176f0df7d3267107177759f
download
ea288c4a8a0245793144b621e1ce317aaf3e0d5e.tar.gz

Fix for http cloning not working in docker



Diff

 Dockerfile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 2043b19..903e5ad 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,6 +7,13 @@ WORKDIR /sources
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 .