From b0fe17cea2ac156573dfc8f84194d7769aea6158 Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Wed, 26 Mar 2025 16:46:57 +0100 Subject: [PATCH] fix: Update Dockerfile to simplify user group setup --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f2dc1d..611fad4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,8 @@ WORKDIR / # Copy the built binary from the builder stage COPY --from=builder /app/gosearch . # Add executing User -RUN addgroup gosearch -RUN useradd -g gosearch gosearch +RUN addgroup gosearch \ +&& useradd -g gosearch gosearch USER gosearch # Expose the application port EXPOSE 3000