mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:25:50 +00:00
fix syntax
This commit is contained in:
parent
fff6bbf82f
commit
df676424e6
1 changed files with 10 additions and 2 deletions
|
@ -15,14 +15,22 @@ COPY --chown=1001:0 .mvn/ .mvn/
|
|||
COPY --chown=1001:0 mvnw pom.xml ./
|
||||
RUN chmod +x mvnw
|
||||
|
||||
# Create Checkstyle suppressions file
|
||||
RUN echo '<?xml version="1.0"?>\n\
|
||||
<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd">\n\
|
||||
<suppressions>\n\
|
||||
<suppress files=".*\.jar" checks="NoHttp"/>\n\
|
||||
<suppress files=".*\.pom" checks="NoHttp"/>\n\
|
||||
</suppressions>' > checkstyle-suppressions.xml
|
||||
|
||||
# Download dependencies
|
||||
RUN ./mvnw dependency:go-offline
|
||||
RUN ./mvnw dependency:go-offline -Dcheckstyle.suppressions.location=checkstyle-suppressions.xml
|
||||
|
||||
# Copy source code
|
||||
COPY --chown=1001:0 src ./src
|
||||
|
||||
# Build the application
|
||||
RUN ./mvnw package -DskipTests
|
||||
RUN ./mvnw package -DskipTests -Dcheckstyle.suppressions.location=checkstyle-suppressions.xml
|
||||
|
||||
# Run stage
|
||||
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
|
||||
|
|
Loading…
Reference in a new issue