Skip to content

Commit e9cb3c7

Browse files
committed
Use same explaining comment style, group related actions together
1 parent fc3ebf6 commit e9cb3c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ RUN apt-get update -qq && \
6666
apt-get install --no-install-recommends -y <%= dockerfile_deploy_packages.join(" ") %> && \
6767
rm -rf /var/lib/apt/lists /var/cache/apt/archives
6868

69-
# add custom user
69+
# Run and own the application files as a non-root user for security
7070
RUN useradd rails
71-
7271
USER rails:rails
7372

7473
# Copy built artifacts: gems, application

0 commit comments

Comments
 (0)