mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
fix Dockerfile
This commit is contained in:
parent
df676424e6
commit
f64d5614d7
1 changed files with 6 additions and 7 deletions
|
@ -16,13 +16,12 @@ 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
|
||||
|
||||
RUN echo '<?xml version="1.0"?>' > checkstyle-suppressions.xml && \
|
||||
echo '<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd">' >> checkstyle-suppressions.xml && \
|
||||
echo '<suppressions>' >> checkstyle-suppressions.xml && \
|
||||
echo ' <suppress files=".*\.jar" checks="NoHttp"/>' >> checkstyle-suppressions.xml && \
|
||||
echo ' <suppress files=".*\.pom" checks="NoHttp"/>' >> checkstyle-suppressions.xml && \
|
||||
echo '</suppressions>' >> checkstyle-suppressions.xml
|
||||
# Download dependencies
|
||||
RUN ./mvnw dependency:go-offline -Dcheckstyle.suppressions.location=checkstyle-suppressions.xml
|
||||
|
||||
|
|
Loading…
Reference in a new issue