mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-04 10:34:49 +02:00
23 lines
482 B
Docker
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"]
|