chore: prepare for deployment
This commit is contained in:
parent
cb78f82d6d
commit
08c08a402c
8 changed files with 83 additions and 2 deletions
|
@ -61,7 +61,7 @@ COPY --from=build /rails /rails
|
|||
# Run and own only the runtime files as a non-root user for security
|
||||
RUN groupadd --system --gid 1000 rails && \
|
||||
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
|
||||
chown -R rails:rails db log storage tmp
|
||||
chown -R rails:rails db log storage tmp data
|
||||
USER 1000:1000
|
||||
|
||||
# Entrypoint prepares the database.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue