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

23 lines
482 B
Docker

#
# Dockerfile for webgoat
#
FROM java:jre-alpine
MAINTAINER kev <noreply@easypi.pro>
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"]