diff --git a/docker/builder/docker-entrypoint.sh b/docker/builder/docker-entrypoint.sh index 4d36ace..9a307c6 100755 --- a/docker/builder/docker-entrypoint.sh +++ b/docker/builder/docker-entrypoint.sh @@ -8,12 +8,16 @@ if [[ ! -x /go/bin/protoc-gen-micro ]]; then fi # Install task -sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /go/bin +if [[ ! -x /go/bin/task ]]; then + sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /go/bin +fi # Install trunk -pushd /go/bin -curl -LO https://trunk.io/releases/trunk -chmod +x trunk -popd +if [[ ! -x /go/bin/trunk ]]; then + pushd /go/bin + curl -LO https://trunk.io/releases/trunk + chmod +x trunk + popd +fi exec "$@" \ No newline at end of file