first commit adding dockerfile

This commit is contained in:
Mansi Boriya 2023-02-19 17:12:50 -08:00
parent ca055dbbe1
commit 66e3ab64d0

14
Dockerfile Normal file
View file

@ -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"]