version: '3.8' services: build: build: context: . dockerfile: Dockerfile volumes: - ./build:/app/build command: sh -c "cp /output/*.jar /app/build/ 2>/dev/null || echo 'Build complete'" dev: build: context: . dockerfile: Dockerfile volumes: - .:/app - gradle-cache:/root/.gradle working_dir: /app command: ./gradle/bin/gradle runClient --no-daemon volumes: gradle-cache: