mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
latest Dockerfile
This commit is contained in:
parent
b2dc648b14
commit
a5c9b26d61
1 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
ARG CACHEBUST=1
|
||||||
# Use an official OpenJDK runtime as a parent image
|
# Use an official OpenJDK runtime as a parent image
|
||||||
FROM openjdk
|
FROM openjdk
|
||||||
|
|
||||||
|
@ -14,11 +15,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
|
||||||
|
|
||||||
WORKDIR /app
|
# Verify the build output
|
||||||
RUN ls -alh /app/target/
|
RUN ls -alh /app/target/
|
||||||
|
|
||||||
# Copy the JAR file to the app directory
|
# Copy the JAR file to the app directory
|
||||||
WORKDIR /app
|
|
||||||
COPY target/spring-petclinic-3.3.0-SNAPSHOT.jar app.jar
|
COPY target/spring-petclinic-3.3.0-SNAPSHOT.jar app.jar
|
||||||
|
|
||||||
# Run the jar file
|
# Run the jar file
|
||||||
|
|
Loading…
Reference in a new issue