From da5b6c75b99f90d3ee90173b5d311a324ddb0a97 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:07:33 +0100 Subject: [PATCH] test: fix multi-sudo dockerfile Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- test/multi-sudo.Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/multi-sudo.Dockerfile b/test/multi-sudo.Dockerfile index 6f04755..72daaa7 100644 --- a/test/multi-sudo.Dockerfile +++ b/test/multi-sudo.Dockerfile @@ -1,5 +1,6 @@ # syntax=docker/dockerfile:1 -FROM --platform=$BUILDPLATFORM golang:alpine AS build + +FROM --platform=$BUILDPLATFORM alpine AS build ARG TARGETPLATFORM ARG BUILDPLATFORM RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log @@ -12,7 +13,7 @@ RUN apk --update --no-cache add \ && rm -rf /tmp/* /var/cache/apk/* USER buildx -RUN sudo chown buildx. /log +RUN sudo chown buildx: /log USER root FROM alpine