nali/Dockerfile

14 lines
283 B
Docker
Raw Normal View History

2020-07-17 01:05:25 +00:00
FROM golang:alpine as builder
RUN apk add --no-cache make git
WORKDIR /nali-src
COPY . /nali-src
RUN go mod download && \
2020-07-17 03:11:56 +00:00
make docker && \
mv ./bin/nali-docker /nali
2020-07-17 01:05:25 +00:00
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder /nali /
ENTRYPOINT ["/nali"]