fix docker build process

This commit is contained in:
Christoph Haas 2025-03-17 01:32:05 +01:00
parent 88686bad08
commit 41461460e6
2 changed files with 4 additions and 1 deletions

View file

@ -75,7 +75,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 tmp
USER 1000:1000
# Entrypoint prepares the database.