Simplify Dockerfile by removing redundant Gradle-related copy steps
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -3,11 +3,8 @@ FROM gradle:8.10.2-jdk21-alpine AS build-base
|
||||
WORKDIR /workspace
|
||||
|
||||
# Pre-copy only files that affect dependency resolution
|
||||
COPY settings.gradle.kts settings.gradle.kts
|
||||
COPY settings.gradle settings.gradle
|
||||
COPY build.gradle.kts build.gradle.kts
|
||||
COPY build.gradle build.gradle
|
||||
COPY gradle gradle
|
||||
COPY gradlew gradlew
|
||||
|
||||
# Warm Gradle wrapper & dependency cache (layer-cached in the image)
|
||||
|
||||
Reference in New Issue
Block a user