forked from ICTU/zap2docker-auth-weekly
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
32 lines (23 loc) · 962 Bytes
/
Dockerfile
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
27
28
29
30
31
32
# Customized Owasp ZAP Dockerfile with support for authentication
FROM owasp/zap2docker-stable:2.5.0
MAINTAINER Alwin Peppels <[email protected]>
USER root
# Install Selenium compatible firefox
RUN apt-get -y remove firefox
RUN cd /opt && \
wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz && \
tar -xvzf geckodriver-v0.11.1-linux64.tar.gz && \
chmod +x geckodriver && \
ln -s /opt/geckodriver /usr/bin/geckodriver && \
export PATH=$PATH:/usr/bin/geckodriver
RUN cd /opt && \
wget http://ftp.mozilla.org/pub/firefox/releases/46.0/linux-x86_64/en-US/firefox-46.0.tar.bz2 && \
bunzip2 firefox-46.0.tar.bz2 && \
tar xvf firefox-46.0.tar && \
ln -s /opt/firefox/firefox /usr/bin/firefox
RUN pip install selenium==2.53.6
RUN pip install pyvirtualdisplay
COPY zap-baseline-custom.py /zap/
RUN chown zap:zap /zap/zap-baseline-custom.py && \
chmod +x /zap/zap-baseline-custom.py
USER root