Skip to content

Commit

Permalink
Fix the chown for rails user
Browse files Browse the repository at this point in the history
  • Loading branch information
suprjinx committed Aug 28, 2024
1 parent 2e618dd commit fc6baa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ WORKDIR $RAILS_ROOT
COPY --from=builder $RAILS_ROOT $RAILS_ROOT

# Add non-root user
RUN addgroup -S rails && adduser -S rails -G rails # && \
# chown -R rails:rails db log storage tmp
RUN addgroup -S rails && adduser -S rails -G rails && \
chown -R rails:rails db log storage tmp
USER rails:rails

# Start the server by default, this can be overwritten at runtime
Expand Down

0 comments on commit fc6baa0

Please sign in to comment.