From ea2139857325c9865b09679118f7e8e3cde1c9a8 Mon Sep 17 00:00:00 2001 From: "Jeremy R. Easton-Marks" Date: Mon, 21 Oct 2024 09:04:34 -0500 Subject: [PATCH] Add DockerFile Add DockerFile Update .gitignore for eclipse import Update README with Build, Deploy, and Visit instructions --- .gitignore | 8 ++++++++ README.md | 12 +++++++++++- docker/Dockerfile | 4 ++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 docker/Dockerfile diff --git a/.gitignore b/.gitignore index 3d76444..b5bedf7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,11 @@ dependency-reduced-pom.xml buildNumber.properties *.iml .idea +.project +.settings/ +model/.classpath +persistence/.classpath +pipeline/.classpath +service/.classpath +util/.classpath +webapp/.classpath diff --git a/README.md b/README.md index eb471a9..0203f76 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,15 @@ A resource for statistically significant mutations in cancer: [cancerhotspots.org](http://cancerhotspots.org). +## Build +``` +docker build -t ksg/cancerhotspots -f docker/Dockerfile . +``` + + ## Deploy -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) +``` +docker run -p 8081:28080 ksg/cancerhotspots +``` +## Visit +[localhost:8081](http://localhost:8081/) \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..0269edc --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,4 @@ +FROM maven:3.9.9-eclipse-temurin-8 +COPY $PWD . +RUN mvn clean install -DskipTests +ENTRYPOINT java -jar webapp/target/cancerhotspots.jar \ No newline at end of file