latest Dockerfile

This commit is contained in:
Lihan 2024-07-27 21:40:15 -04:00
parent 8dc7f3005d
commit b2dc648b14

View file

@ -13,9 +13,12 @@ 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
WORKDIR /app
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