From 76f0cb1a6a2a41ad8b1abd4515a74a7d03a803ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A2=85=EC=9C=A4?= <103932812+rlawhddbs@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:14:24 +0900 Subject: [PATCH] Create Dockerfile --- canbus-server/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 canbus-server/Dockerfile diff --git a/canbus-server/Dockerfile b/canbus-server/Dockerfile new file mode 100644 index 0000000..4d7a5b3 --- /dev/null +++ b/canbus-server/Dockerfile @@ -0,0 +1,13 @@ +FROM amazoncorretto:17-alpine + +WORKDIR /app + +COPY . . + +RUN chmod +x ./gradlew +RUN ./gradlew clean build + +ENV JAR_PATH=/app/build/libs +RUN mv ${JAR_PATH}/canbus-server-0.0.1-SNAPSHOT.jar /app/app.jar + +ENTRYPOINT ["java", "-jar", "app.jar"]