-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (22 loc) · 892 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
# Maintainer
FROM python:3.10-bullseye
LABEL maintainer="Ashwin Singh <[email protected]>"
LABEL description="This tool acts as a wrapper for Nuclei and generates a formatted JSON output that can be loaded and tables."
# Install required packages
RUN apt-get update && \
apt-get install -y python3.10 python3-pip git zip unzip
# Install Nuclei
RUN wget https://dl.google.com/go/go1.20.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz
ENV GOROOT=/usr/local/go
ENV GOPATH=$HOME/go
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
RUN go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
WORKDIR /usr/src/app
# Copy the entrypoint script
COPY . .
# Install Project Dependencies
RUN pip install --upgrade pip
RUN pip3 install -r requirements.txt
# Set the entrypoint script as the default command
ENTRYPOINT ["python3","main.py"]