2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-02 11:07:25 +01:00

add webgoat

This commit is contained in:
kev
2016-06-11 08:15:37 +08:00
parent 9915bb4a7a
commit 66258afe1c
5 changed files with 57 additions and 1 deletions

22
webgoat/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
#
# 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"]

25
webgoat/README.md Normal file
View File

@@ -0,0 +1,25 @@
webgoat
=======
![](https://badge.imagelayers.io/vimagick/webgoat:latest.svg)
[WebGoat][1] is a deliberately insecure Web Application.
### docker-compose.yml
```yaml
webgoat:
image: vimagick/webgoat
ports:
- "8080:8080"
restart: always
```
### up and running
```bash
docker-compose up -d
firefox http://localhost:8080/WebGoat/
```
[1]: https://github.com/WebGoat/WebGoat

View File

@@ -0,0 +1,5 @@
webgoat:
image: vimagick/webgoat
ports:
- "8080:8080"
restart: always