Skip to content

Commit

Permalink
disable nativeimage task in docker gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
kevintanhongann committed Jun 1, 2023
1 parent b17b374 commit 2690e5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generators/server/templates/gradle/docker.gradle.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ dockerfileNative {
baseImage = "oracle/graalvm-ce:20.3.0-java11"
args("-Xmx64m")
}
nativeImage {
args('--static')
}
<!-- nativeImage { -->
<!-- args('--static') -->
<!-- } -->
dockerBuildNative {
images = ["<%= baseName %>:$project.version", "<%= baseName %>:latest"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ package <%=packageName%>.config;

import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
import io.micronaut.security.annotation.Secured;
import io.micronaut.security.rules.SecurityRule;

@Controller
@Secured(SecurityRule.IS_ANONYMOUS)
public class CorsController {

@Get("/api/test-cors")
Expand Down

0 comments on commit 2690e5e

Please sign in to comment.