From df676424e6d471adaec3030b65e9563169a9e5d7 Mon Sep 17 00:00:00 2001 From: lamya1baidouri Date: Mon, 3 Feb 2025 15:25:19 +0100 Subject: [PATCH] fix syntax --- .devcontainer/Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e1fca0313..41b594815 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -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 '\n\ +\n\ +\n\ + \n\ + \n\ +' > 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