Skip to content

Commit 53a47a9

Browse files
authored
add --home and --shell to rails user in Dockerfile (rails#47533)
1 parent 3771f68 commit 53a47a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/Dockerfile.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ RUN apt-get update -qq && \
7373
rm -rf /var/lib/apt/lists /var/cache/apt/archives
7474

7575
# Run and own the application files as a non-root user for security
76-
RUN useradd rails
76+
RUN useradd rails --home /rails --shell /bin/bash
7777
USER rails:rails
7878

7979
# Copy built artifacts: gems, application

0 commit comments

Comments
 (0)