forked from RedSiege/EyeWitness
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
13 lines (7 loc) · 674 Bytes
/
Dockerfile
File metadata and controls
13 lines (7 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM python:3.11-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends chromium chromium-driver xvfb && rm -rf /var/lib/apt/lists/* && pip install --no-cache-dir selenium>=4.29.0 rapidfuzz>=3.0.0 netaddr>=0.10.0 psutil>=5.9.0 pyvirtualdisplay>=3.0
ENV DISPLAY=:99 CHROME_HEADLESS=1 CHROME_NO_SANDBOX=1 DOCKER_CONTAINER=1
COPY Python/ /opt/eyewitness/
RUN echo '#!/bin/bash\nXvfb :99 -screen 0 1920x1080x24 -nolisten tcp -nolisten unix &\nexec python /opt/eyewitness/EyeWitness.py "$@"' > /entrypoint.sh && chmod +x /entrypoint.sh
WORKDIR /workspace
ENTRYPOINT ["/entrypoint.sh"]