mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 21:29:02 +08:00
14 lines
293 B
Docker
14 lines
293 B
Docker
|
FROM golang:alpine as builder
|
||
|
|
||
|
RUN apk add --no-cache make git
|
||
|
WORKDIR /nali-src
|
||
|
COPY . /nali-src
|
||
|
RUN go mod download && \
|
||
|
make linux-amd64 && \
|
||
|
mv ./bin/nali-linux-amd64 /nali
|
||
|
|
||
|
FROM alpine:latest
|
||
|
|
||
|
RUN apk add --no-cache ca-certificates
|
||
|
COPY --from=builder /nali /
|
||
|
ENTRYPOINT ["/nali"]
|