From 575e820e6ce5fb4613011ab8790178dc02fbda62 Mon Sep 17 00:00:00 2001 From: "fabio.d.mota" Date: Tue, 14 Nov 2023 23:05:07 +0000 Subject: [PATCH] fix(DockerFile): Fix trivy scan --- Dockerfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8198b7d..1de4376 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,14 +40,8 @@ WORKDIR /app COPY --chown=${UID}:${GID} --from=maven target/value-added-service-*.jar app.jar -# Adding wget for the health check -RUN apk --no-cache add wget - USER ${UID}:${GID} -# Health check instruction -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --quiet --tries=1 --spider http://localhost:8080/actuator/health || exit 1 # set the startup command to run your binary CMD ["java", "-jar", "./app.jar"]