From 6b78c09c4d9af274d93bfb4c9fa538c5a1662306 Mon Sep 17 00:00:00 2001 From: sb-benohe <71290292+sb-benohe@users.noreply.github.com> Date: Wed, 23 Nov 2022 10:31:35 -0500 Subject: [PATCH] Update Dockerfile --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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