diff --git a/Dockerfile b/Dockerfile index 3582f74e..10ed4b7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM golang:1.17.3-alpine3.14@sha256:7bd9bf011a76c21b70a1e507de7f8d67656e1f293fd72af80aa46f7b054db515 as build +FROM golang:1.17.3-alpine3.15@sha256:a207b29286084e7342286de809756f61558b00b81f794406399027631e0dba8b as build ARG VERSION=latest WORKDIR /tmp/cyclonedx-gomod RUN apk --no-cache add git make COPY . . RUN make install -FROM golang:1.17.3-alpine3.14@sha256:7bd9bf011a76c21b70a1e507de7f8d67656e1f293fd72af80aa46f7b054db515 +FROM golang:1.17.3-alpine3.15@sha256:a207b29286084e7342286de809756f61558b00b81f794406399027631e0dba8b COPY --from=build /go/bin/cyclonedx-gomod /usr/local/bin/ USER 1000 ENTRYPOINT ["cyclonedx-gomod"] diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser index 27c9f466..75a2cfee 100644 --- a/Dockerfile.goreleaser +++ b/Dockerfile.goreleaser @@ -1,6 +1,6 @@ # This Dockerfile is meant for GoReleaser exclusively, see .goreleaser.yml. # For manual builds, please use the regular Dockerfile or simply run "make docker". -FROM golang:1.17.3-alpine3.14@sha256:7bd9bf011a76c21b70a1e507de7f8d67656e1f293fd72af80aa46f7b054db515 +FROM golang:1.17.3-alpine3.15@sha256:a207b29286084e7342286de809756f61558b00b81f794406399027631e0dba8b COPY cyclonedx-gomod /usr/local/bin/ USER 1000 ENTRYPOINT ["cyclonedx-gomod"]