We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3ebf6 commit e9cb3c7Copy full SHA for e9cb3c7
railties/lib/rails/generators/rails/app/templates/Dockerfile.tt
@@ -66,9 +66,8 @@ RUN apt-get update -qq && \
66
apt-get install --no-install-recommends -y <%= dockerfile_deploy_packages.join(" ") %> && \
67
rm -rf /var/lib/apt/lists /var/cache/apt/archives
68
69
-# add custom user
+# Run and own the application files as a non-root user for security
70
RUN useradd rails
71
-
72
USER rails:rails
73
74
# Copy built artifacts: gems, application
0 commit comments