From c31fb02b2bd82eb2e4eb1f625d3107568c06a352 Mon Sep 17 00:00:00 2001 From: StealWonders <6114858+StealWonders@users.noreply.github.com> Date: Mon, 4 Mar 2024 00:05:47 +0100 Subject: [PATCH] removes user --- Dockerfile | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6460581..1ac772a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,5 @@ FROM golang:1.22-alpine as base -# Set environment variables for the user -ARG USER_ID -ARG GROUP_ID - -# Create a group and user -RUN addgroup -g $GROUP_ID mensatt && \ - adduser -D -s /bin/sh -u $USER_ID -G mensatt mensatt - -# Use the new user -USER mensatt - # Create another stage called "dev" that is based off of our "base" stage (so we have golang available to us) FROM base as dev