Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
try2 by setting homedir
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-04 authored Oct 11, 2023
1 parent 0cbc321 commit 8bded17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ RUN apk --update upgrade \
&& apk --no-cache add ca-certificates bash openrc \
&& rm -rf /var/cache/apk/*

RUN addgroup -S hydroxide && adduser -S hydroxide -G hydroxide
RUN addgroup -S hydroxide && adduser -h /hydroxide -S hydroxide -G hydroxide

# copy hydroxide
COPY --chown=hydroxide:hydroxide --from=builder /go/bin/hydroxide /usr/bin/hydroxide

# using copy instead of volume to avoid permission issues
COPY --chown=hydroxide:hydroxide --from=builder /hydroxide /hydroxide
#COPY --chown=hydroxide:hydroxide --from=builder /hydroxide /hydroxide

USER hydroxide
WORKDIR /hydroxide
Expand Down

0 comments on commit 8bded17

Please sign in to comment.