2020-09-16 14:17:58 +00:00
|
|
|
FROM golang:alpine as builder
|
2020-05-19 07:48:57 +00:00
|
|
|
|
2020-09-16 14:17:58 +00:00
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
2020-09-23 21:15:46 +00:00
|
|
|
COPY ./v2/go.mod .
|
2020-09-16 14:17:58 +00:00
|
|
|
RUN go mod download
|
2020-05-19 07:48:57 +00:00
|
|
|
|
2020-09-16 14:17:58 +00:00
|
|
|
COPY . .
|
2020-09-23 20:38:59 +00:00
|
|
|
RUN cd ./v2/cmd/nuclei && go build -o nuclei .
|
2020-05-19 07:48:57 +00:00
|
|
|
|
2020-09-16 14:17:58 +00:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
RUN mkdir /app
|
|
|
|
RUN adduser -S -D -H -h /app appuser
|
|
|
|
USER appuser
|
2020-09-23 20:38:59 +00:00
|
|
|
COPY --from=builder /app/v2/cmd/nuclei/nuclei /app
|
2020-09-16 14:17:58 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
CMD ["./nuclei"]
|