-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 719 Bytes
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
FROM python:3.11
WORKDIR /app
# enable non-free component of Debian repository
RUN sed -i '/^deb/ s/$/ non-free/' /etc/apt/sources.list && \
sed -i '/^deb-src/ s/$/ non-free/' /etc/apt/sources.list
# install system packages
RUN apt update && \
apt dist-upgrade -y && \
apt install -y git curl hydra sudo nikto nmap sqlmap wget zip unzip -y --no-install-recommends && \
rm -rf /tmp/*
# install python packages
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir beautifulsoup4 imageio matplotlib numpy pandas openai requests wikipedia && \
rm -rf /tmp/*
COPY app.py ./
WORKDIR /data
VOLUME [ "/data" ]
CMD ["python", "/app/app.py"]