# The fork's image plus what atlibs-iroh reaches a rented machine with: dumbpipe (its iroh ticket) and the ssh
# client over it (scripts/build.sh).
ARG BASE=knotless-fork-base
ARG RUST_IMAGE=rust:1.99.1-bookworm
FROM ${RUST_IMAGE} AS dumbpipe
RUN cargo install dumbpipe@0.40.1 --locked --root /out

FROM ${BASE}
USER root
RUN apt-get update && apt-get install -y --no-install-recommends openssh-client && rm -rf /var/lib/apt/lists/*
COPY --from=dumbpipe /out/bin/dumbpipe /usr/local/bin/dumbpipe
USER node
