Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Changed to use Verify instead of Install Maven lifecycle phase instead.
  • Loading branch information
nhkhai committed May 4, 2024
1 parent 7e3b9c6 commit 73e21b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ RUN ./mvnw dependency:go-offline
COPY src ./src

# Compile the Java application, then generate the deployment jar file.
RUN ./mvnw clean install -DskipTests
# The Maven basic phases in order: Validate, Compile, Test, Package, Verify, Install, Deploy.
# The verify command executes each default lifecycle phase in order (validate, compile, package, etc.), before executing verify.
# In most cases the effect is the same as package. However, in case there are integration tests, these will be executed as well.
# During the verify phase some additional checks can be done, e.g. if your code is written according to the predefined checkstyle rules.
RUN ./mvnw clean verify -DskipTests

# The base image to package. This is a multi-stage build using a new context.
FROM eclipse-temurin:21-jdk-jammy
Expand Down

0 comments on commit 73e21b1

Please sign in to comment.