Added support to build an Docker container to run it on Raspberry Pi (#329)

Added support to build an Docker container to run it on Raspberry Pi #329
This commit is contained in:
Kristoffer Schneider
2017-03-02 21:31:40 +01:00
committed by Nanne Baars
parent 2b9185d85f
commit 26ab0dc712
3 changed files with 99 additions and 17 deletions

View File

@ -0,0 +1,10 @@
# Baseimage specially for raspberry pi usage
FROM resin/rpi-raspbian:jessie
VOLUME /tmp
# Installing openjdk-8-headless like in the standard Webgoat Docker container
RUN apt-get update && apt-get install -y \
openjdk-8-jre-headless
RUN cd /root; mkdir -p .webgoat
ADD webgoat-container-8.0-SNAPSHOT.war webgoat.jar
RUN sh -c 'touch /webgoat.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/webgoat.jar"]