refactor: use symbolic link for Java (#1996)

This commit is contained in:
Nanne Baars 2025-01-12 16:17:45 +01:00 committed by GitHub
parent 02f43c54d0
commit 06e2fdbd33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
FROM lscr.io/linuxserver/webtop:ubuntu-xfce
LABEL NAME = "WebGoat: A deliberately insecure Web Application"
LABEL maintainer = "WebGoat team"
LABEL name="WebGoat: A deliberately insecure Web Application"
LABEL maintainer="WebGoat team"
WORKDIR /config
@ -38,9 +38,10 @@ RUN \
rm -rf java.tar.gz && \
chmod +x /config/start_webgoat.sh && \
chmod +x /config/start_zap.sh && \
echo "JAVA_HOME=/config/jdk-23.0.1+11/" >> .bash_aliases && \
mv /config/jdk-23.0.1+11-jre /config/java-jdk && \
echo "JAVA_HOME=/config/java-jdk/" >> .bash_aliases && \
echo "PATH=$PATH:$JAVA_HOME/bin" >> .bash_aliases
ENV JAVA_HOME=/config/jdk-23.0.1+11
ENV JAVA_HOME=/config/java-jdk
WORKDIR /config/Desktop

View File

@ -1,6 +1,6 @@
#!/bin/sh
/config/jdk-21.0.3+9-jre/bin/java \
/config/java-jdk/bin/java \
-Duser.home=/config \
-Dfile.encoding=UTF-8 \
-DTZ=Europe/Amsterdam \

View File

@ -1,3 +1,3 @@
#!/bin/sh
/config/jdk-21.0.3+9-jre/bin/java -jar /config/ZAP_2.15.0/zap-2.15.0.jar
/config/java-jdk/bin/java -jar /config/ZAP_2.15.0/zap-2.15.0.jar