forked from OWASP-Benchmark/BenchmarkJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 711 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (22 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This dockerfile builds a container that pulls down and runs the latest version of Benchmark
FROM ubuntu:latest
MAINTAINER "Dave Wichers dave.wichers@owasp.org"
RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
RUN apt-get install -q -y \
openjdk-8-jre-headless \
openjdk-8-jdk \
git \
maven \
wget \
iputils-ping \
&& apt-get clean
RUN mkdir /owasp
WORKDIR /owasp
RUN git clone https://github.com/OWASP-Benchmark/BenchmarkJava
WORKDIR /owasp/BenchmarkJava
RUN mvn clean package cargo:install
RUN useradd -d /home/bench -m -s /bin/bash bench
RUN echo bench:bench | chpasswd
RUN chown -R bench /owasp/
ENV PATH /owasp/BenchmarkJava:$PATH