-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added requirements (should remove if not needed) Updated port 8000 to 80 for ESS.py
- Loading branch information
1 parent
fd4b1ae
commit 6af76b7
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:2.7.13 | ||
#From ZAP's docker image | ||
FROM owasp/zap2docker-stable | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Copy the current directory contents into the container at /app | ||
ADD . /app | ||
|
||
USER root | ||
# Install any needed packages specified in requirements.txt | ||
RUN pip install -r requirements.txt | ||
RUN pip install flask | ||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install flask-httpauth | ||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install requests | ||
|
||
# Make port 80 available to the world outside this container | ||
EXPOSE 80 | ||
EXPOSE 8000 | ||
|
||
#Run ZAP in daemon mode | ||
RUN chmod +x ./../zap/zap.sh | ||
CMD python ess.py & ./../zap/zap.sh -daemon -host 0.0.0.0 -port 8080 -config api.disablekey=true &&fg | ||
|
||
# Define environment variable | ||
ENV NAME World | ||
|
||
# Run app.py when the container launches | ||
CMD ["python", "ess.py"] | ||
#CMD ["python", "ess.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
flask | ||
flask-httpauth | ||
python-owasp-zap-v2.4 | ||
requests |