Skip to content

Commit

Permalink
Remove application-specific user.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn committed Jan 9, 2025
1 parent 4419cb5 commit bbad762
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ FROM base AS application
COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
COPY --from=build /rails /rails

# Create an application-specific user.
RUN addgroup --system rails \
&& adduser -G rails --system rails \
&& chown -R rails:rails db log storage tmp

# Switch to the user.
USER rails:rails

# Set a custom entrypoint.
ENTRYPOINT ["bin/docker-entrypoint"]

Expand Down

0 comments on commit bbad762

Please sign in to comment.