From 83dcb58554211131325c8a0627c569423e1cf460 Mon Sep 17 00:00:00 2001 From: antonello Date: Sat, 22 Jun 2024 15:44:09 +0200 Subject: [PATCH] updating to java 21 --- Dockerfile | 2 +- pom.xml | 2 +- src/main/resources/application-local.yml | 4 +++- src/main/resources/application.yml | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 28f65c5..90b1543 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:17 +FROM amazoncorretto:21-alpine VOLUME /tmp ADD target/backend-0.0.1-SNAPSHOT.jar app.jar diff --git a/pom.xml b/pom.xml index 81e6e15..e0963f9 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ 0.0.1-SNAPSHOT 2.15.2 org.gcnc.calculate.Application - 17 + 21 diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index 02b002b..d0d019f 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -1,3 +1,5 @@ properties: fetcher: - url: "http://localhost:5000" \ No newline at end of file + url: "http://localhost:5000" +server: + port: 8080 \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index b41f555..3326611 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,7 @@ server: servlet: context-path: / + port: 8100 logging: level: org.springframework.web: DEBUG