From c6abd7514928fb6d0e9bc380b52090d53d79b3b5 Mon Sep 17 00:00:00 2001 From: Rory Carson Date: Fri, 22 Sep 2023 11:46:48 +0200 Subject: [PATCH] [SEC-3236]Build dockerfile --- Dockerfile | 11 +++++++++++ go.mod | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Dockerfile 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