#380 Download mongodb while building the Docker image. If you are behind a proxy (or no connection) during the start of WebGoat you might not be able to download the mongodb binary.
This commit is contained in:
		| @@ -3,6 +3,9 @@ FROM openjdk:8-jre | ||||
| RUN useradd --home-dir /home/webgoat --create-home -U webgoat | ||||
|  | ||||
| USER webgoat | ||||
|  | ||||
| RUN mkdir -p /home/webgoat/.embedmongo/linux | ||||
| RUN curl -o /home/webgoat/.embedmongo/linux/mongodb-linux-x86_64-3.2.2.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.2.tgz | ||||
| RUN cd /home/webgoat/; mkdir -p .webgoat | ||||
| COPY webgoat-server-8.0-SNAPSHOT.jar /home/webgoat/webgoat.jar | ||||
| ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/home/webgoat/webgoat.jar"] | ||||
		Reference in New Issue
	
	Block a user