From d80454bc6e08b753a2552a76adf619a8e15c4dd7 Mon Sep 17 00:00:00 2001 From: YoungJun Park Date: Fri, 4 Oct 2024 01:32:00 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add:=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - Dockerfile | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore index 01490b0..428647a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ docker-compose.yml -Dockerfile HELP.md .gradle diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..242aef4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM openjdk:17-jdk-slim + +EXPOSE 8080 + +ARG JAR_FILE=build/libs/*.jar +COPY ${JAR_FILE} weski-app.jar + +CMD java -Dserver.port=8080 \ + -Dspring.datasource.username=master \ + -Dspring.datasource.password=master \ + -jar /weski-app.jar