2023-03-16 18:29:14 +00:00
|
|
|
# Build
|
2023-07-17 19:42:24 +00:00
|
|
|
FROM golang:1.20.6-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-06-19 07:44:46 +00:00
|
|
|
FROM alpine:3.18.2
|
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"]
|