gw-bin 0.2.2

Watch git repositories, pull changes and run commands on the new files
Documentation
FROM rust:1.75 AS builder

WORKDIR /app

COPY ./Cargo.lock ./Cargo.toml /app
COPY ./src /app/src

RUN cargo build --release


FROM debian:12-slim

ENV DEBIAN_FRONTEND=noninteractive

RUN echo "[safe] \n\
    directory = *" > /etc/gitconfig && \
    apt-get update && \
    apt-get install -y --no-install-recommends \
        ca-certificates \
        openssl \
        openssh-client \
        && \
    rm -rf /var/lib/apt/lists/*

COPY --from=builder /app/target/release/gw /usr/bin/gw

ENTRYPOINT ["/usr/bin/gw"]