Skip to content

Commit

Permalink
fix: create home directory for alpine images
Browse files Browse the repository at this point in the history
- Remove the `-H` flag from the `adduser` command in the Dockerfiles

Signed-off-by: 陳鈞 <[email protected]>
  • Loading branch information
jim60105 committed May 5, 2024
1 parent cc0dcf7 commit bd187e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ARG TARGETVARIANT

# Create user
ARG UID
RUN adduser -H -g "" -D $UID -u $UID -G root
RUN adduser -g "" -D $UID -u $UID -G root

# Create directories with correct permissions
RUN install -d -m 775 -o $UID -g 0 /download && \
Expand Down
2 changes: 1 addition & 1 deletion alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN pip3.12 uninstall -y setuptools pip wheel && \

# Create user
ARG UID
RUN adduser -H -g "" -D $UID -u $UID -G root
RUN adduser -g "" -D $UID -u $UID -G root

# Create directories with correct permissions
RUN install -d -m 775 -o $UID -g 0 /download && \
Expand Down

0 comments on commit bd187e7

Please sign in to comment.