Skip to content

Commit

Permalink
Upgrade JAva version to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitbucket Pipeline committed May 6, 2020
1 parent 8fe434d commit 34cf8c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM oracle/graalvm-ce:19.2.0 as graalvm
FROM oracle/graalvm-ce:20.0.0-java11 as graalvm
COPY . /home/app/micronaut-hello-native1
WORKDIR /home/app/micronaut-hello-native1
ENV JAVA_OPTIONS "-Xms1g -Xmx16g"
RUN gu install native-image
RUN native-image -J-Xmx4g --no-server -cp build/libs/micronaut-hello-native1-0.1-all.jar

FROM frolvlad/alpine-glibc
FROM muicoder/glibc
EXPOSE 8080
COPY --from=graalvm /home/app/micronaut-hello-native1 .
ENTRYPOINT ["./micronaut-hello-native1"]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Linux / MacOS:
### Run the application

```bash
# Docker routine
docker build . -t micronaut-hello --no-cache -m 16g
docker run -p 8080:8080 micronaut-hello:latest
```

_Ensure you run graalvm native build against relevant Java version_
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
micronautVersion=1.2.2
micronautVersion=1.3.4

0 comments on commit 34cf8c4

Please sign in to comment.