From 66e3ab64d0f2b20306bc0f34ac58c7ce02c2ad66 Mon Sep 17 00:00:00 2001 From: Mansi Boriya Date: Sun, 19 Feb 2023 17:12:50 -0800 Subject: [PATCH] first commit adding dockerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..0a65d3388 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM openjdk:21-jdk + +# Set the working directory to /app +WORKDIR /app + +# Copy the current directory contents into the container at /app +COPY . /app + +# Make port 8080 available to the world outside this container +EXPOSE 8080 + +RUN ./mvnw package + +CMD ["java", "-jar", "target/spring-petclinic-3.0.0-SNAPSHOT.jar"]