updated docker file

This commit is contained in:
prasannakumar 2024-06-27 11:04:20 +05:30
commit f62c23fb5c
2 changed files with 4 additions and 5 deletions

View file

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

View file

@ -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
server.port=8888