gw-bin 0.2.2

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

WORKDIR /app

RUN apk add --no-cache \
        libressl-dev \
        musl-dev

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

RUN cargo build --release


FROM alpine:3.19

RUN echo "[safe] \n\
    directory = *" > /etc/gitconfig && \
    apk add --no-cache \
        ca-certificates \
        openssh-client

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

ENTRYPOINT ["/usr/bin/gw"]