From 94a4b0cae1169fd8ff45f3c22bae3a3d66c167eb Mon Sep 17 00:00:00 2001 From: imertetsu Date: Tue, 13 Aug 2024 12:17:11 -0400 Subject: [PATCH] dockerfile added --- Dockerfile | 9 +++++++++ build.gradle | 2 +- src/main/resources/application.properties | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..07a3177 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM openjdk:17-jdk-alpine + +COPY build/libs/SpacecraftEvents-0.0.1.jar /app/ + +WORKDIR /app + +EXPOSE 8083 + +ENTRYPOINT ["java", "-jar", "SpacecraftEvents-0.0.1.jar"] \ No newline at end of file diff --git a/build.gradle b/build.gradle index 77145c3..e003a29 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'com.spacecraft' -version = '0.0.1-SNAPSHOT' +version = '0.0.1' java { toolchain { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 033ebbb..9f8ad48 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1,3 @@ spring.application.name=SpacecraftEvents +server.servlet.context-path=/api +server.port=8083 \ No newline at end of file