mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
updated docker file
This commit is contained in:
commit
f62c23fb5c
2 changed files with 4 additions and 5 deletions
|
@ -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"]
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue