Grails 3.1.4 and Docker - grails commands return “No profile found for name web”
I have a simple grails app that runs fine by itself. It does not have a problem using the grails web profile with grails run-app However, when I build a docker image out of the app, the grails commands, such as grails run-app --stacktrace or grails dependency-report --stacktrace sent to docker fail with stacktrace: | Error Error occurred running Grails CLI: No profile found for name [web]. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.IllegalStateException: No profile found for name [web]. at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:507)