-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (26 loc) · 1.03 KB
/
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
33
34
35
36
37
38
39
FROM golang:alpine
# Install required packages
RUN apk update && apk add curl build-base gcc abuild binutils binutils-doc gcc-doc libpcap-dev
# Install usually static dependencies first
RUN wget https://github.com/findomain/findomain/releases/latest/download/findomain-linux -O /usr/local/bin/findomain
RUN chmod o+x /usr/local/bin/findomain
ENV GO111MODULE=on
RUN go install -v github.com/projectdiscovery/nuclei/v2/cmd/[email protected]
RUN nuclei -version
RUN nuclei -update-templates
RUN go get -v github.com/projectdiscovery/httpx/cmd/httpx
RUN go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
# /root folder isn't accessible within lambda context, move templates and config dir to /
RUN cp -R ~/nuclei-templates /nuclei-templates
RUN chmod -R 777 /nuclei-templates
RUN cp -R ~/.config /
ENV HOME=/
# Copy in custom templates
COPY ./custom-templates/ /nuclei-templates/
WORKDIR /go/src/app
COPY . .
# Download all dependencies
RUN go get -d -v ./...
# Install binaries
RUN go install -v ./...
ENTRYPOINT [ "/go/bin/scout" ]