chore: prepare for deployment

This commit is contained in:
insects 2025-03-11 20:24:06 +01:00
parent cb78f82d6d
commit 08c08a402c
8 changed files with 83 additions and 2 deletions

View file

@ -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.