Skip to content

Commit 0101257

Browse files
taberj-gitclaude
andcommitted
Disable --link flag in Micronaut-generated Dockerfiles
Configure MicronautDockerfile and NativeImageDockerfile tasks to set useCopyLink=false, removing the COPY --link option from generated Dockerfiles. This improves compatibility with Docker environments that don't support BuildKit. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9718729 commit 0101257

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

UnityAuth/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ java {
5252
}
5353

5454
graalvmNative.toolchainDetection = false
55+
56+
tasks.withType(io.micronaut.gradle.docker.MicronautDockerfile).configureEach {
57+
useCopyLink = false
58+
}
59+
60+
tasks.withType(io.micronaut.gradle.docker.NativeImageDockerfile).configureEach {
61+
useCopyLink = false
62+
}
63+
5564
micronaut {
5665
runtime("netty")
5766
testRuntime("junit5")

0 commit comments

Comments
 (0)