From 41461460e6619d48cbda2dd843a6fc84bd598076 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 17 Mar 2025 01:32:05 +0100 Subject: [PATCH] fix docker build process --- .dockerignore | 3 +++ Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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.