nuclei/Dockerfile

16 lines
348 B
Docker
Raw Permalink Normal View History

2023-03-16 18:29:14 +00:00
# Build
FROM golang:1.21-alpine AS build-env
RUN apk add build-base
2023-03-16 18:29:14 +00:00
WORKDIR /app
COPY . /app
WORKDIR /app
2023-03-16 18:29:14 +00:00
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
FROM alpine:3.18.6
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/nuclei /usr/local/bin/
2023-03-16 18:29:14 +00:00
ENTRYPOINT ["nuclei"]