Skip to content

Commit

Permalink
Use non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
jnonino committed Jul 24, 2023
1 parent b59722c commit f2adca2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ RUN go build -o microservices-demo
FROM alpine:3.18
LABEL maintainer="Julian Nonino <noninojulian@gmail.com"

# User the default non-root user in Alpine: `nobody`
USER 65534

# Set the Current Working Directory inside the container
WORKDIR /app

Expand Down

0 comments on commit f2adca2

Please sign in to comment.