mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
23 lines
483 B
Docker
23 lines
483 B
Docker
|
#
|
||
|
# Dockerfile for webgoat
|
||
|
#
|
||
|
|
||
|
FROM java:jre-alpine
|
||
|
MAINTAINER kev <noreply@easypi.info>
|
||
|
|
||
|
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"]
|