mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
latest Dockerfile
This commit is contained in:
parent
c95b67697b
commit
8dc7f3005d
1 changed files with 2 additions and 1 deletions
|
@ -13,9 +13,10 @@ COPY src ./src
|
||||||
|
|
||||||
# Package the application
|
# Package the application
|
||||||
RUN ./mvnw clean package -Dmaven.test.skip=true
|
RUN ./mvnw clean package -Dmaven.test.skip=true
|
||||||
|
RUN ls -alh /app/target/ # This will list the contents of the target directory
|
||||||
|
|
||||||
# Copy the JAR file to the app directory
|
# Copy the JAR file to the app directory
|
||||||
COPY target/*.jar app.jar
|
COPY target/spring-petclinic-3.3.0-SNAPSHOT.jar app.jar
|
||||||
|
|
||||||
# Run the jar file
|
# Run the jar file
|
||||||
CMD ["java", "-jar", "app.jar"]
|
CMD ["java", "-jar", "app.jar"]
|
||||||
|
|
Loading…
Reference in a new issue