From e035adc5599ea13524b101ca1374743225881a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Fri, 12 Apr 2024 10:59:53 +0200 Subject: [PATCH] test --- docker/alpine.dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docker/alpine.dockerfile b/docker/alpine.dockerfile index fe6f68bc..250ae12a 100644 --- a/docker/alpine.dockerfile +++ b/docker/alpine.dockerfile @@ -18,12 +18,6 @@ ENV IsAlpine=true ENV PROTOBUF_PROTOC=/usr/bin/protoc ENV gRPC_PluginFullPath=/usr/bin/grpc_csharp_plugin -RUN adduser -D user \ - && mkdir -p /etc/sudoers.d \ - && echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user \ - && chmod 0440 /etc/sudoers.d/user -USER user - # Install older sdks using the install script RUN curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \ && echo "SHA256: $(sha256sum dotnet-install.sh)" \ @@ -33,4 +27,6 @@ RUN curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \ && ./dotnet-install.sh -v 7.0.407 --install-dir /usr/share/dotnet --no-path \ && rm dotnet-install.sh +USER app + WORKDIR /project