Skip to content

Commit

Permalink
fix: 🐛 Fixes missing apt update/upgrade and fixes docker run comman…
Browse files Browse the repository at this point in the history
…d in readme
  • Loading branch information
mattmilan-dev committed Mar 8, 2024
1 parent d4e56ef commit 91072c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 CMD curl
USER root

# get chrome v114.x which works with the ZAP WebDriver
RUN wget https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/google-chrome-stable_122.0.6261.69-1_amd64.deb -O /tmp/chrome.deb &&\
RUN apt-get update &&\
apt-get upgrade &&\
wget https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/google-chrome-stable_122.0.6261.69-1_amd64.deb -O /tmp/chrome.deb &&\
apt install -y /tmp/chrome.deb &&\
rm /tmp/chrome.deb

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ docker build -t cytix-zap .
docker run -d -t -i \
-e API_KEY='MY_SUPER_SECRET_API_KEY' \
-p 8080:8080 \
--name zap .
--name zap cytix-zap
```

Following a successful build using the steps above, the ZAP server should now be accessible via http://localhost:8080/. The API key used will be as supplied in the `-e API_KEY` flag above. If no `API_KEY` is specified at runtime, the key used will be `MY_SUPER_SECRET_API_KEY`.
Expand Down

0 comments on commit 91072c5

Please sign in to comment.