From 8307f0d9db8a3ee317049aaf2831afada88ce7f1 Mon Sep 17 00:00:00 2001 From: prasannakumar <142010251+spkumar17@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:03:20 +0530 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fee443960..17b9650e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ +# Use an OpenJDK base image FROM openjdk:17-jdk-alpine +# Setting the working directory in the container WORKDIR /app/petclinic +# Copy the JAR file from the host machine to the container COPY target/spring-petclinic-3.3.0-SNAPSHOT.jar . +# Expose the port your application runs on EXPOSE 8888 - +# Set the entry point to run the JAR file ENTRYPOINT ["java", "-jar", "spring-petclinic-3.3.0-SNAPSHOT.jar"]