From a1d9990ede6ff17b83acf92fbb48390764c19b23 Mon Sep 17 00:00:00 2001 From: Dean Lofts Date: Sun, 11 Aug 2024 22:44:22 +1000 Subject: [PATCH] just work out of main lol --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f6863c..266567c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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