edit Dockerfile etc
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"java.configuration.updateBuildConfiguration": "interactive"
|
||||
}
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
FROM maven:3-jdk-8-alpine as builder
|
||||
FROM maven:3-jdk-21-alpine AS builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . /usr/src/app
|
||||
RUN mvn package
|
||||
RUN mvn compile
|
||||
|
||||
FROM openjdk:8-jre-alpine
|
||||
FROM openjdk:21-jre-alpine
|
||||
|
||||
COPY --from=builder /usr/src/app/target/*.jar /app.jar
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>21</java.version>
|
||||
<server.port>8083</server.port>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -8,11 +8,10 @@ import org.springframework.web.bind.annotation.*;
|
||||
@RestController
|
||||
public class DemoApplication {
|
||||
|
||||
|
||||
//test
|
||||
//test
|
||||
@GetMapping("/")
|
||||
public String home() {
|
||||
return "Spring is here!";
|
||||
return "Spring is here!!!";
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Reference in New Issue
Block a user