Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make Micronaut work with GraalVM #329
I understand if this is not a priority right now but ever since I first heard of Micronaut and how it consumes less resources (especially memory) and allow faster startup time than vanilla Spring Boot I'd wanted to try to run Micronaut with Graal. That would be extremely cool and really take the points on memory consumption, startup time etc to the next level (and it would probably make for a really good selling point).
Anyway I just made an initial attempt to do this by using this
FROM findepi/graalvm:native as builder # build our application WORKDIR /builder ADD ./target/micronaut-example*.jar /builder/server.jar RUN native-image \ --static \ -H:IncludeResources="/resources/.*" \ -jar server.jar RUN rm server.jar ##### # The actual image to run ##### FROM alpine:3.7 RUN apk --no-cache add ca-certificates WORKDIR /app EXPOSE 8080 COPY --from=builder /builder/server . CMD ./server
Steps to Reproduce
docker build -t micronaut-example .
It should build
I cannot use e.g.
Again I do perfectly understand this might never happen, I mainly wanted you to know that I've given it a go and hear your thoughts. Feel free to close it if it's deemed to be out of scope.