Skip to content

Commit 9884a0e

Browse files
authored
Simplify Dockerfile copy commands for Gradle files
1 parent 096af4c commit 9884a0e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ FROM amazoncorretto:11
33
WORKDIR /code
44

55
# Copy the Gradle wrapper files
6-
COPY gradlew .
7-
COPY gradle gradle/
8-
COPY build.gradle .
9-
COPY settings.gradle .
6+
COPY gradlew build.gradle settings.gradle ./
7+
COPY gradle/ gradle/
108

119
# Make gradlew executable
1210
RUN chmod +x gradlew
1311

14-
CMD ["sh", "-c", "./gradlew :spotlessApply"]
12+
CMD ["sh", "-c", "./gradlew :spotlessApply"]

0 commit comments

Comments
 (0)