# -------- builder stage -------- #
FROM golang:alpine AS builder
RUN go build main.go

# -------- prod stage -------- #
FROM alpine:3.14
COPY --from=builder /go/bin/terrascan /go/bin/terrascan
ENTRYPOINT ["/go/bin/main"]
