From 44e1794a1185407bfdc3049692d68ba88ef3fc1c Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Mon, 5 May 2025 17:18:32 +0200 Subject: [PATCH] Add user creation and switch to non-root user in Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e0fba9f..b141b17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,5 @@ FROM ghcr.io/catthehacker/ubuntu:act-latest -COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ \ No newline at end of file +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ + +RUN useradd uv +USER uv \ No newline at end of file