From 962e93f455f57d44830f765fc6b6ebb6a82e4eb7 Mon Sep 17 00:00:00 2001 From: Vasco Ramos Date: Wed, 26 Apr 2023 11:35:34 +0100 Subject: [PATCH 1/6] chore: move docker base to distroless nossl --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a02e823..4963ea4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN cd /workspace && go mod download RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o main -a cmd/main.go # Use distroless as minimal base image to package the manager binary -FROM gcr.io/distroless/base:latest-amd64 +FROM gcr.io/distroless/base-nossl:latest WORKDIR / From c0fa76b6c01895099d35ab2a26d6d9c631553434 Mon Sep 17 00:00:00 2001 From: Vasco Ramos Date: Wed, 26 Apr 2023 11:40:36 +0100 Subject: [PATCH 2/6] change tag to nonroot --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4963ea4..adfc49c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN cd /workspace && go mod download RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o main -a cmd/main.go # Use distroless as minimal base image to package the manager binary -FROM gcr.io/distroless/base-nossl:latest +FROM gcr.io/distroless/base-nossl:nonroot WORKDIR / From 1f294558aed31a217bb9b49cdaf62f8681ef0176 Mon Sep 17 00:00:00 2001 From: Vasco Ramos Date: Wed, 26 Apr 2023 11:52:00 +0100 Subject: [PATCH 3/6] update to static-debian11 nonroot --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index adfc49c..91ad6a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,8 @@ RUN cd /workspace && go mod download RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o main -a cmd/main.go # Use distroless as minimal base image to package the manager binary -FROM gcr.io/distroless/base-nossl:nonroot - +# FROM golang:${GOLANG_VERSION}-alpine +FROM gcr.io/distroless/static-debian11:nonroot-amd64 WORKDIR / LABEL org.opencontainers.image.source https://github.com/ydataai/authentication-service From 37f9768e33215074ee618a03abdd32c762c1a648 Mon Sep 17 00:00:00 2001 From: Vasco Ramos Date: Wed, 26 Apr 2023 11:52:13 +0100 Subject: [PATCH 4/6] fix space --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 91ad6a2..e2bf94a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o main -a cmd # Use distroless as minimal base image to package the manager binary # FROM golang:${GOLANG_VERSION}-alpine FROM gcr.io/distroless/static-debian11:nonroot-amd64 + WORKDIR / LABEL org.opencontainers.image.source https://github.com/ydataai/authentication-service From 1513c2310eab43164b3f91accca9840b86985ede Mon Sep 17 00:00:00 2001 From: Vasco Ramos Date: Wed, 26 Apr 2023 11:58:58 +0100 Subject: [PATCH 5/6] remove amd64 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e2bf94a..d1a30ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o main -a cmd # Use distroless as minimal base image to package the manager binary # FROM golang:${GOLANG_VERSION}-alpine -FROM gcr.io/distroless/static-debian11:nonroot-amd64 +FROM gcr.io/distroless/static-debian11:nonroot WORKDIR / From 5296e709024bf286f24a3727489521160da8b668 Mon Sep 17 00:00:00 2001 From: Vasco Ramos Date: Wed, 26 Apr 2023 11:59:50 +0100 Subject: [PATCH 6/6] remove comment --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d1a30ea..f6b9969 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,6 @@ RUN cd /workspace && go mod download RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o main -a cmd/main.go # Use distroless as minimal base image to package the manager binary -# FROM golang:${GOLANG_VERSION}-alpine FROM gcr.io/distroless/static-debian11:nonroot WORKDIR /