diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..23072c48 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:1.17 + +WORKDIR /app +COPY go.mod go.sum ./ +RUN go mod download +COPY cmd/. ./cmd +COPY pkg/. ./pkg +RUN ls -al +RUN CGO_ENABLED=0 GOOS=linux go build -o /allstar ./cmd/allstar + +CMD ["/allstar"] \ No newline at end of file diff --git a/go.mod b/go.mod index 2ad4d887..e0addb15 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ossf/allstar -go 1.16 +go 1.17 require ( github.com/Masterminds/semver/v3 v3.2.1