From 0e51be91cbe18d64e4af9bd61648afb9cdc6d540 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 7 Sep 2024 09:31:41 +0000 Subject: [PATCH 1/2] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855502 - https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855503 - https://snyk.io/vuln/SNYK-DEBIAN12-EXPAT-7855507 - https://snyk.io/vuln/SNYK-DEBIAN12-CURL-7575306 - https://snyk.io/vuln/SNYK-DEBIAN12-CURL-7575306 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e5dcfe8..18dd08c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Use the official Golang image to create a build artifact. # This is based on Debian and sets the GOPATH to /go. -FROM golang:1.23rc2 as builder +FROM golang:1.23.0 as builder # Copy local code to the container image. WORKDIR /go/src/projeto @@ -11,7 +11,7 @@ RUN go get -d -v ./... RUN go install -v ./... # Use a Docker multi-stage build to create a lean production image. -FROM golang:1.23rc2 +FROM golang:1.23.0 COPY --from=builder /go/bin/projeto /projeto # Run the web service on container startup. From ca4eeb414b8d63cbda347fe9b4693800510cbac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nat=C3=A1lia=20Granato?= Date: Mon, 9 Sep 2024 15:08:06 +0000 Subject: [PATCH 2/2] fix: resolved conflicting files --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18dd08c..dfdc930 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ # Use the official Golang image to create a build artifact. # This is based on Debian and sets the GOPATH to /go. -FROM golang:1.23.0 as builder +FROM FROM golang:1.23.1 as builder + # Copy local code to the container image. WORKDIR /go/src/projeto @@ -11,7 +12,7 @@ RUN go get -d -v ./... RUN go install -v ./... # Use a Docker multi-stage build to create a lean production image. -FROM golang:1.23.0 +FROM golang:1.23.1 COPY --from=builder /go/bin/projeto /projeto # Run the web service on container startup.