Skip to content

Commit

Permalink
change to chown user:user
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Nov 17, 2023
1 parent 5b8ce60 commit ce24059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN go install github.com/cosmtrek/[email protected]
RUN go install github.com/pressly/goose/v3/cmd/[email protected]

# set up to run as a normal user
RUN useradd user && mkdir /home/user && chown user.user /home/user && chown user.user /src
RUN useradd user && mkdir /home/user && chown user:user /home/user && chown user:user /src
USER user
ENV GOPATH /home/user/go

Expand Down

0 comments on commit ce24059

Please sign in to comment.