17 lines
300 B
Docker
17 lines
300 B
Docker
FROM maven:3.8.6-openjdk-8
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy pom.xml and source files
|
|
COPY pom.xml .
|
|
COPY src ./src
|
|
|
|
# Run tests with coverage
|
|
RUN mvn clean test
|
|
|
|
# Generate coverage report
|
|
RUN mvn jacoco:report
|
|
|
|
# Show the coverage report location
|
|
RUN echo "Coverage report is available in target/site/jacoco/"
|