diff --git a/docker/pic-sure-hpds/Dockerfile b/docker/pic-sure-hpds/Dockerfile index d1e32b75..d6b12b47 100644 --- a/docker/pic-sure-hpds/Dockerfile +++ b/docker/pic-sure-hpds/Dockerfile @@ -1,2 +1,9 @@ -FROM tomcat:9-jre11-openjdk-slim -ADD hpds-war-2.0.0-SNAPSHOT.war /usr/local/tomcat/webapps/ROOT.war \ No newline at end of file +FROM amazoncorretto:21.0.1-alpine3.18 + +# Copy jar and access token from maven build +ADD service-3.0.0-SNAPSHOT.jar /service.jar + +# Time zone +ENV TZ="US/Eastern" + +ENTRYPOINT ["java", "-Xmx8192m", "-jar", "/service.jar"] \ No newline at end of file diff --git a/service/pom.xml b/service/pom.xml index 8467508c..833e0b73 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -73,4 +73,17 @@ + + + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + + ../docker/pic-sure-hpds + + + + + diff --git a/war/pom.xml b/war/pom.xml index 5628668b..deda5e51 100644 --- a/war/pom.xml +++ b/war/pom.xml @@ -40,39 +40,5 @@ - - - maven-clean-plugin - - - default-clean - clean - - clean - - - - - ../docker/pic-sure-hpds - - *.war - *.jar - war-exec.* - - - - - - - - - org.apache.maven.plugins - maven-war-plugin - 3.3.1 - - docker/pic-sure-hpds - - -