| ADD alpine-minirootfs-3.22.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ARG TAG=2.8.3 |
| RUN |1 TAG=2.8.3 /bin/sh -c apk update && apk add git go bash # buildkit |
| RUN |1 TAG=2.8.3 /bin/sh -c git clone https://github.com/adnanh/webhook # buildkit |
| RUN |1 TAG=2.8.3 /bin/sh -c # buildkit |
| RUN |1 TAG=2.8.3 /bin/sh -c cd webhook && git checkout tags/$TAG && go build # buildkit |
| RUN |1 TAG=2.8.3 /bin/sh -c mv -v webhook/webhook /usr/local/bin && rm -r webhook # buildkit |
| RUN |1 TAG=2.8.3 /bin/sh -c mkdir /hooks # buildkit |
| RUN |1 TAG=2.8.3 /bin/sh -c mkdir /scripts # buildkit |
| COPY --chmod=0755 ./entrypoint.sh /entrypoint.sh # buildkit |
| ENTRYPOINT ["/entrypoint.sh"] |