From 514f15124b67b4c06fb6ca308b24f1e2e004287b Mon Sep 17 00:00:00 2001 From: SEONG JUN SHIN Date: Fri, 26 Jan 2024 13:50:58 +0900 Subject: [PATCH] feat: DockerFile simultaneous update --- Dockerfile | 1 + src/main/java/gdsc/pointer/controller/TestController.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7c66210..f76ff04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM openjdk:17-jdk-slim-buster +WORKDIR /usr/app/backend COPY build/libs/pointer-0.0.1-SNAPSHOT.jar app.jar EXPOSE 8080 ENTRYPOINT ["java", "-jar", "/app.jar"] \ No newline at end of file diff --git a/src/main/java/gdsc/pointer/controller/TestController.java b/src/main/java/gdsc/pointer/controller/TestController.java index 5a16a31..f79600f 100644 --- a/src/main/java/gdsc/pointer/controller/TestController.java +++ b/src/main/java/gdsc/pointer/controller/TestController.java @@ -11,7 +11,7 @@ public class TestController { @RequestMapping("/") public String test() { log.info("test"); - return "test"; + return "This is a root path for SpringBoot Backend"; } }