Skip to content

Commit

Permalink
fix(DockerFile): Fix trivy scan
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiodmota committed Nov 14, 2023
1 parent 3533fdd commit 575e820
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 575e820

Please sign in to comment.