.github
.mvn
config
docker
Dockerfile
Readme.md
index.html
nginx.conf
pom.xml
start.sh
docs
webgoat-container
webgoat-integration-tests
webgoat-lessons
webgoat-server
webwolf
.gitignore
COPYRIGHT.txt
CREATE_RELEASE.MD
LICENSE.txt
README.MD
RELEASE_NOTES.md
mvn-debug
mvnw
mvnw.cmd
pom.xml
30 lines
783 B
Docker
30 lines
783 B
Docker
FROM openjdk:16-slim
|
|
|
|
ARG webgoat_version=8.2.1-SNAPSHOT
|
|
ENV webgoat_version_env=${webgoat_version}
|
|
|
|
RUN apt-get update
|
|
RUN useradd -ms /bin/bash webgoat
|
|
RUN apt-get -y install apt-utils nginx
|
|
|
|
USER webgoat
|
|
|
|
COPY --chown=webgoat nginx.conf /etc/nginx/nginx.conf
|
|
COPY --chown=webgoat index.html /usr/share/nginx/html/
|
|
COPY --chown=webgoat target/webgoat-server-${webgoat_version}.jar /home/webgoat/webgoat.jar
|
|
COPY --chown=webgoat target/webwolf-${webgoat_version}.jar /home/webgoat/webwolf.jar
|
|
COPY --chown=webgoat start.sh /home/webgoat
|
|
|
|
EXPOSE 8080
|
|
EXPOSE 9090
|
|
|
|
ENV WEBGOAT_PORT 8080
|
|
ENV WEBGOAT_SSLENABLED false
|
|
|
|
ENV GOATURL https://127.0.0.1:$WEBGOAT_PORT
|
|
ENV WOLFURL http://127.0.0.1:9090
|
|
|
|
|
|
WORKDIR /home/webgoat
|
|
ENTRYPOINT /bin/bash /home/webgoat/start.sh $webgoat_version_env
|