From af6ee347c5cc8e50bbff56d7344ab236c92dfd34 Mon Sep 17 00:00:00 2001 From: Preethi Varambally Date: Wed, 24 May 2023 14:17:16 -0700 Subject: [PATCH] feat: explicitly set USER root - paketo doesn't have a default user root Authored-by: Preethi Varambally --- dockerfiles/ubuntu/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/dockerfiles/ubuntu/Dockerfile b/dockerfiles/ubuntu/Dockerfile index f97c0a4..6fee0e5 100644 --- a/dockerfiles/ubuntu/Dockerfile +++ b/dockerfiles/ubuntu/Dockerfile @@ -14,6 +14,7 @@ RUN set -e; mkdir /tests; for pkg in $(go list ./...); do \ done FROM ${base_image} AS resource +USER root RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef" RUN apt update \ && DEBIAN_FRONTEND=noninteractive \