FROM docker.io/library/rust:1.96-slim-trixie
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq && \
apt-get dist-upgrade -y &&\
apt-get install -y curl ca-certificates build-essential git
WORKDIR /src
COPY . .
RUN cargo install --path .
VOLUME /repo
VOLUME /root/.git-remote-iroh
ENTRYPOINT ["/usr/local/cargo/bin/git-remote-iroh"]