diff --git a/Dockerfile b/Dockerfile index 305c35cd..0bd38739 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,12 @@ -## Use whatever base image -FROM adoptopenjdk/openjdk16:jre-16_36 +## Use AWS AL2 + Corretto base image +FROM amazoncorretto:17-al2-jdk + COPY target/*.jar app.jar +## Update Packages +RUN yum update -y --security + +## Download New Relic RUN curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic.jar \ && curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic.yml