fix Dockerfile

This commit is contained in:
lamya1baidouri 2025-02-03 15:45:43 +01:00
parent df676424e6
commit f64d5614d7

View file

@ -16,13 +16,12 @@ COPY --chown=1001:0 mvnw pom.xml ./
RUN chmod +x mvnw RUN chmod +x mvnw
# Create Checkstyle suppressions file # Create Checkstyle suppressions file
RUN echo '<?xml version="1.0"?>\n\ RUN echo '<?xml version="1.0"?>' > checkstyle-suppressions.xml && \
<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd">\n\ echo '<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd">' >> checkstyle-suppressions.xml && \
<suppressions>\n\ echo '<suppressions>' >> checkstyle-suppressions.xml && \
<suppress files=".*\.jar" checks="NoHttp"/>\n\ echo ' <suppress files=".*\.jar" checks="NoHttp"/>' >> checkstyle-suppressions.xml && \
<suppress files=".*\.pom" checks="NoHttp"/>\n\ echo ' <suppress files=".*\.pom" checks="NoHttp"/>' >> checkstyle-suppressions.xml && \
</suppressions>' > checkstyle-suppressions.xml echo '</suppressions>' >> checkstyle-suppressions.xml
# Download dependencies # Download dependencies
RUN ./mvnw dependency:go-offline -Dcheckstyle.suppressions.location=checkstyle-suppressions.xml RUN ./mvnw dependency:go-offline -Dcheckstyle.suppressions.location=checkstyle-suppressions.xml