Skip to content

Commit

Permalink
removes user
Browse files Browse the repository at this point in the history
  • Loading branch information
StealWonders committed Mar 3, 2024
1 parent 403749e commit c31fb02
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit c31fb02

Please sign in to comment.