FROM golang:1.16-alpine

RUN mkdir /go/src/vegvisir
WORKDIR /go/src/vegvisir

COPY vegvisir.json go.mod go.sum ./
COPY pkg/ ./pkg

RUN go mod download

CMD ["go", "run", "pkg/main.go"]