Skip to content

Commit

Permalink
build: change user
Browse files Browse the repository at this point in the history
  • Loading branch information
ySnoopyDogy committed May 5, 2024
1 parent 6408d35 commit 3f20e7f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM golang:1.20-alpine AS builder

ENV USER=appuser
ENV UID=10001

WORKDIR /app

COPY . .
Expand All @@ -18,7 +15,7 @@ WORKDIR app
COPY --from=builder /app/vangogh vangogh
COPY assets assets

USER root
USER vangogh
EXPOSE 2080

ENTRYPOINT ["/app/vangogh"]

0 comments on commit 3f20e7f

Please sign in to comment.