diff --git a/Dockerfile b/Dockerfile index 6a06e7076..626ef2549 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,9 @@ -# Use an OpenJDK base image FROM openjdk:17-jdk-alpine -# Setting the working directory in the container -WORKDIR /app +WORKDIR /app/petclinic -# Copy the JAR file from the host machine to the container -COPY ./target/spring-petclinic-3.3.0-SNAPSHOT.jar . +COPY target/spring-petclinic-3.3.0-SNAPSHOT.jar . - -# Expose the port your application runs on EXPOSE 80 -# Set the entry point to run the JAR file ENTRYPOINT ["java", "-jar", "spring-petclinic-3.3.0-SNAPSHOT.jar"]