1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/webgoat/Dockerfile

23 lines
482 B
Docker
Raw Normal View History

2016-06-11 02:15:37 +02:00
#
# Dockerfile for webgoat
#
FROM java:jre-alpine
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2016-06-11 02:15:37 +02:00
ENV WEBGOAT_VERSION 7.0.1
ENV WEBGOAT_FILE webgoat-container-$WEBGOAT_VERSION-war-exec.jar
ENV WEBGOAT_URL https://github.com/WebGoat/WebGoat/releases/download/$WEBGOAT_VERSION/$WEBGOAT_FILE
WORKDIR /app
RUN set -xe \
&& apk add -U curl \
&& curl -sSL $WEBGOAT_URL > webgoat.jar \
&& apk del curl \
&& rm -rf /var/cache/apk/*
EXPOSE 8080
CMD ["java", "-jar", "webgoat.jar"]