Skip to content

Commit

Permalink
just work out of main lol
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Aug 11, 2024
1 parent eeeaa77 commit a1d9990
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 @@ -51,9 +51,9 @@ COPY --from=build /usr/local/bundle /usr/local/bundle
COPY --from=build /rails /rails

# Ensure required directories exist and have the correct permissions
RUN mkdir -p public/assets public/packs public/uploads/og_images && \
RUN mkdir -p public/assets public/packs public/uploads/og_images public/avatars && \
useradd rails --create-home --shell /bin/bash && \
chown -R rails:rails db log storage tmp public/assets public/packs public/uploads/og_images
chown -R rails:rails db log storage tmp public/assets public/packs public/uploads/og_images public/avatars

# Run and own only the runtime files as a non-root user for security
USER rails:rails
Expand Down

0 comments on commit a1d9990

Please sign in to comment.