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