Skip to content

Commit

Permalink
fix(*:skip) Set home directory of app user (#3652)
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Steiner <robert@flower.ai>
  • Loading branch information
Robert-Steiner authored Jul 3, 2024
1 parent 552f4c5 commit 498a560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/docker/base/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ RUN apk add --no-cache \
# add non-root user
&& adduser \
--no-create-home \
--home /app \
--disabled-password \
--gecos "" \
--uid 49999 app \
Expand Down
1 change: 1 addition & 0 deletions src/docker/base/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ RUN pip install -U --no-cache-dir \
# add non-root user
RUN adduser \
--no-create-home \
--home /app \
--disabled-password \
--gecos "" \
--uid 49999 app \
Expand Down

0 comments on commit 498a560

Please sign in to comment.