From 2f182ab931ba2b3d3545fa599a771002de112401 Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Thu, 28 Sep 2023 23:49:20 -0700 Subject: [PATCH] Update to Distroless based on Debian 12 (#805) Updated base image, which includes a fix to mark the binary as owned by the nonroot user. --- image/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image/Dockerfile b/image/Dockerfile index c73cc4e673..298b7f66cd 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -12,11 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM gcr.io/distroless/cc-debian11:nonroot as base +FROM gcr.io/distroless/cc-debian12:nonroot as base WORKDIR / COPY ./license.html . COPY ./dependencies-src.zip . -COPY ./target/image/quilkin . +COPY --chown=nonroot:nonroot ./target/image/quilkin . USER nonroot:nonroot ENTRYPOINT ["/quilkin"]