2023-03-16 18:29:14 +00:00
|
|
|
# Build
|
2023-05-08 17:26:38 +00:00
|
|
|
FROM golang:1.20.4-alpine AS build-env
|
2022-10-11 07:31:13 +00:00
|
|
|
RUN apk add build-base
|
2023-03-16 18:29:14 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app/v2
|
|
|
|
RUN go mod download
|
|
|
|
RUN go build ./cmd/nuclei
|
2020-05-19 07:48:57 +00:00
|
|
|
|
2023-03-16 18:29:14 +00:00
|
|
|
# Release
|
2023-05-15 11:20:49 +00:00
|
|
|
FROM alpine:3.18.0
|
2023-03-16 18:29:14 +00:00
|
|
|
RUN apk -U upgrade --no-cache \
|
|
|
|
&& apk add --no-cache bind-tools chromium ca-certificates
|
|
|
|
COPY --from=build-env /app/v2/nuclei /usr/local/bin/
|
|
|
|
|
|
|
|
ENTRYPOINT ["nuclei"]
|