* organizing environment variables * Update application-webgoat.properties * Update pom.xml * test without ssl * fix docker base image and default env entries * seperate server.address from webgoat.host and webwolf.host * change base image and enable endpoint logging for docker as well * change README * change README * make integration test able to verify against alternative host names * use dynamic ports and remove system println
36 lines
1.2 KiB
Docker
36 lines
1.2 KiB
Docker
FROM docker.io/eclipse-temurin:21-jdk-ubi9-minimal
|
|
LABEL NAME = "WebGoat: A deliberately insecure Web Application"
|
|
MAINTAINER "WebGoat team"
|
|
|
|
RUN \
|
|
useradd -ms /bin/bash webgoat && \
|
|
chgrp -R 0 /home/webgoat && \
|
|
chmod -R g=u /home/webgoat
|
|
|
|
USER webgoat
|
|
|
|
COPY --chown=webgoat target/webgoat-*.jar /home/webgoat/webgoat.jar
|
|
|
|
EXPOSE 8080
|
|
EXPOSE 9090
|
|
|
|
ENV TZ=Europe/Amsterdam
|
|
|
|
WORKDIR /home/webgoat
|
|
ENTRYPOINT [ "java", \
|
|
"-Duser.home=/home/webgoat", \
|
|
"-Dfile.encoding=UTF-8", \
|
|
"--add-opens", "java.base/java.lang=ALL-UNNAMED", \
|
|
"--add-opens", "java.base/java.util=ALL-UNNAMED", \
|
|
"--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED", \
|
|
"--add-opens", "java.base/java.text=ALL-UNNAMED", \
|
|
"--add-opens", "java.desktop/java.beans=ALL-UNNAMED", \
|
|
"--add-opens", "java.desktop/java.awt.font=ALL-UNNAMED", \
|
|
"--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", \
|
|
"--add-opens", "java.base/java.io=ALL-UNNAMED", \
|
|
"--add-opens", "java.base/java.util=ALL-UNNAMED", \
|
|
"--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", \
|
|
"--add-opens", "java.base/java.io=ALL-UNNAMED", \
|
|
"-Drunning.in.docker=true", \
|
|
"-jar", "webgoat.jar", "--server.address", "0.0.0.0" ]
|