-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
42 lines (31 loc) · 970 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
33
34
35
36
37
38
39
40
41
42
#From ZAP's docker image
FROM owasp/zap2docker-stable:2.8.0
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
# Set Image Labels
ARG GIT_COMMIT=unspecified
LABEL git_commit=$GIT_COMMIT
ARG COMMIT_DATE=unspecified
LABEL commit_date=$COMMIT_DATE
ARG VERSION=unspecified
LABEL version=$VERSION
USER root
# Install the following Python packages
RUN pip install flask
RUN pip install flask-httpauth
RUN pip install coverage
RUN pip install requests
RUN pip install xlrd
RUN pip install codecov
# Make port 80 available to the world outside this container
EXPOSE 80
# Make port 8080 available to the world outside this container
EXPOSE 8080
#Run ZAP in daemon mode
RUN chmod +x ./../zap/zap.sh
#Run both ess and ZAP
CMD ./../zap/zap.sh -daemon -host 0.0.0.0 -port 8080 -config api.disablekey=true & exec python ess.py &&fg
# Run app.py when the container launches
#CMD ["python", "ess.py"]