From fc6baa06c1350cfc51a824601744f7096929ad08 Mon Sep 17 00:00:00 2001 From: Geoff Wilson Date: Wed, 28 Aug 2024 14:33:44 -0400 Subject: [PATCH] Fix the chown for rails user --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 14dc515..e5ec729 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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