Skip to content

Commit

Permalink
Add user to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
matbur committed Nov 16, 2024
1 parent 5d37fc8 commit ad3e281
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 @@ -9,6 +9,9 @@ COPY . .
RUN go build -o app ./cmd/image-text

FROM alpine:3.20

USER nobody:nobody

WORKDIR /app
COPY --from=build-env app .
CMD ["./app"]

0 comments on commit ad3e281

Please sign in to comment.