diff --git a/Dockerfile b/Dockerfile index 66c4a01e..8ccb9cfa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,10 @@ FROM amazoncorretto:11 WORKDIR /code # Copy the Gradle wrapper files -COPY gradlew . -COPY gradle gradle/ -COPY build.gradle . -COPY settings.gradle . +COPY gradlew build.gradle settings.gradle ./ +COPY gradle/ gradle/ # Make gradlew executable RUN chmod +x gradlew -CMD ["sh", "-c", "./gradlew :spotlessApply"] \ No newline at end of file +CMD ["sh", "-c", "./gradlew :spotlessApply"]