diff --git a/.dockerignore b/.dockerignore index 325bfc0..da20f14 100644 --- a/.dockerignore +++ b/.dockerignore @@ -49,3 +49,6 @@ # Ignore Docker-related files /.dockerignore /Dockerfile* + +# Ignore test screenshots +/public/shrine diff --git a/Dockerfile b/Dockerfile index 1f27ab1..51ef077 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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.