#!/bin/sh
rm -rf docker-gen
mkdir docker-gen
export GOPATH=`pwd`/docker-gen
git clone --depth 1 https://github.com/nginx-proxy/docker-gen $GOPATH/src/github.com/nginx-proxy/docker-gen
( cd $GOPATH/src/github.com/nginx-proxy/docker-gen && go mod download )
tar cf - --exclude .git docker-gen | xz -9 >docker-gen-`date '+%Y%m%d'`.tar.xz
rm -rf docker-gen
