mirror of https://github.com/daffainfo/nuclei.git
16 lines
348 B
Docker
16 lines
348 B
Docker
# Build
|
|
FROM golang:1.21-alpine AS build-env
|
|
RUN apk add build-base
|
|
WORKDIR /app
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN go mod download
|
|
RUN go build ./cmd/nuclei
|
|
|
|
# Release
|
|
FROM alpine:3.18.2
|
|
RUN apk -U upgrade --no-cache \
|
|
&& apk add --no-cache bind-tools chromium ca-certificates
|
|
COPY --from=build-env /app/nuclei /usr/local/bin/
|
|
|
|
ENTRYPOINT ["nuclei"] |