diff --git a/Dockerfile b/Dockerfile index 2b2e4c73e..78395868f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,13 @@ 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 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 +EXPOSE 8888 # Set the entry point to run the JAR file ENTRYPOINT ["java", "-jar", "spring-petclinic-3.3.0-SNAPSHOT.jar"] \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 051d2d25c..8bd37b988 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -24,4 +24,4 @@ logging.level.org.springframework=INFO # Maximum time static resources should be cached spring.web.resources.cache.cachecontrol.max-age=12h -server.port=80 \ No newline at end of file +server.port=8888