docker run --rm -it -v $(pwd):/app -v $HOME/.gradle:/gradle andreirs/alpine-gradle gradle clean build
/app
: Working directory, where your build.gradle located/gradle
: Gradle home directory, where the gradle cache located
docker run --rm -it -v $(pwd):/app -v $HOME/.gradle:/gradle andreirs/alpine-gradle gradle clean build
/app
: Working directory, where your build.gradle located/gradle
: Gradle home directory, where the gradle cache located