Small improvements (#1848)

* refactor: remove CORS

* improvement: add healthcheck to Docker file
This commit is contained in:
Nanne Baars
2024-07-23 17:42:56 +02:00
committed by GitHub
parent 85103bbcad
commit 2b0c22ac68
2 changed files with 5 additions and 18 deletions

View File

@ -33,3 +33,6 @@ ENTRYPOINT [ "java", \
"--add-opens", "java.base/java.io=ALL-UNNAMED", \
"-Drunning.in.docker=true", \
"-jar", "webgoat.jar", "--server.address", "0.0.0.0" ]
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl --fail http://localhost:8080/WebGoat/actuator/health || exit 1